Defines the position, size, anchor and pivot information for a rectangle.
public struct RectTransform : IComponentData
Fields
The position of this RectTransform's pivot of relative to the anchor
reference point.
Declaration
public float2 anchoredPosition
Field Value
The normalized position in the parent RectTransform that the upper
right corner of the rectangle is anchored to.
Declaration
Field Value
The normalized position in the parent RectTransform that the lower
left corner of the rectangle is anchored to.
Declaration
Field Value
The normalized position in this RectTransform that it rotates around.
Declaration
Field Value
The size of this RectTransform relative to the distances between the
anchors.
If the anchors are together, sizeDelta is the same as size. If the
anchors are in each of the four corners of the parent, the sizeDelta
is how much bigger or smaller the rectangle is compared to its parent.
Declaration
Field Value
Properties
Declaration
public static RectTransform Default { get; }
Property Value
Declaration
public float2 offsetMax { get; set; }
Property Value
Declaration
public float2 offsetMin { get; set; }
Property Value