Struct RectCanvas
A RectCanvas, the root of a RectTransform hierarchy.
Namespace: Unity.Tiny.UI
Syntax
public struct RectCanvas : IComponentData
Fields
ReferenceResolution
Size of the canvas. Used as the root size to compute all child sizes and positions. If there is a RectCanvasScaleWithCamera component on the same entity, this will be updated based on the referenced camera settings.
Declaration
public float2 ReferenceResolution
Field Value
Type | Description |
---|---|
float2 |
Properties
RenderMode
Declaration
public RenderMode RenderMode { get; set; }
Property Value
Type | Description |
---|---|
RenderMode |