SRectTransform
Index
Functions Index
void SetParent (SGameObject parent, bool worldPositionStays)
void SetInsetAndSizeFromParentEdge (int edge, float inset, float size)
void SetSizeWithCurrentAnchors (bool vertical, float size)
Properties Index
SRect Rect get
SVector anchorMin get
set
SVector anchorMax get
set
SVector anchoredPosition3D get
set
SVector anchoredPosition get
set
SVector sizeDelta get
set
SVector pivot get
set
SVector offsetMin get
set
SVector offsetMax get
set
SGameObject GameObject get
Functions
SetParent
void SetParent (SGameObject parent, bool worldPositionStays)
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
SRect Rect get
Property Description
anchorMin
SVector anchorMin get
set
The normalized position in the parent RectTransform that the lower left corner is anchored to.
anchorMax
SVector anchorMax get
set
Property Description
anchoredPosition3D
SVector anchoredPosition3D get
set
Property Description
anchoredPosition
SVector anchoredPosition get
set
Property Description
sizeDelta
SVector sizeDelta get
set
The size of this RectTransform relative to the distances between the anchors.
pivot
SVector pivot get
set
The normalized position in this RectTransform that it rotates around.
offsetMin
SVector offsetMin get
set
The offset of the lower left corner of the rectangle relative to the lower left anchor.
offsetMax
SVector offsetMax get
set
The offset of the upper right corner of the rectangle relative to the upper right anchor.
GameObject
SGameObject GameObject get
Property Description
Last updated