SRectTransform
Index
Functions Index
Properties Index
Functions
SetParent
Set the parent of the transform.
SetInsetAndSizeFromParentEdge
void SetInsetAndSizeFromParentEdge (int edge, float inset, float size)
Set the distance of this rectangle relative to a specified edge of the parent rectangle, while also setting its size.
SetSizeWithCurrentAnchors
void SetSizeWithCurrentAnchors (bool vertical, float size)
Makes the RectTransform calculated rect be a given size on the specified axis.
Properties
Rect
Property Description
anchorMin
The normalized position in the parent RectTransform that the lower left corner is anchored to.
anchorMax
Property Description
anchoredPosition3D
Property Description
anchoredPosition
Property Description
sizeDelta
The size of this RectTransform relative to the distances between the anchors.
pivot
The normalized position in this RectTransform that it rotates around.
offsetMin
The offset of the lower left corner of the rectangle relative to the lower left anchor.
offsetMax
The offset of the upper right corner of the rectangle relative to the upper right anchor.
GameObject
Property Description
Last updated
Was this helpful?