public struct RectTransform : IComponentData
Fields
The position in the parent RectTransform relative to the corresponding X or Y anchor's
position. If the min and max coordinate of the anchor direction is the same, then the
AnchoredPosition determines the offset from the parent's corresponding anchor position to the
Pivot, and the SizeDelta determines the size in that direction (centered on the pivot).
Declaration
public float2 AnchoredPosition
Field Value
The normalized position in the parent RectTransform or UICanvas's space of
the upper-right corner of the rectangle.
Declaration
Field Value
The normalized position in the parent RectTransform or UICanvas's space of
the lower-left corner of the rectangle.
Declaration
Field Value
The point around which this RectTransform rotates and expands outwards in size from,
defined as a normalized coordinate of the rectangle itself. 0,0 is the lower-left corner, while 1,1
is the upper-right corner.
Declaration
Field Value
Declaration
Field Value
The size of this RectTransform relative to the distances between the
anchors.
If the anchors are together, the SizeDelta is the element's exact size.
If the anchors are separated, the SizeDelta is the delta from the size of
anchor rectangle (i.e. negative if it is contained within the anchor rectangle).
The SizeDelta and AnchoredPosition work together to determine the final size of the
Rect.
Declaration
Field Value
Properties
Declaration
public bool Hidden { get; set; }
Property Value