void SetParent (SGameObject parent, bool worldPositionStays)
Set the parent of the transform.
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.
void SetSizeWithCurrentAnchors (bool vertical, float size)
Makes the RectTransform calculated rect be a given size on the specified axis.
SRect Rect get
Property Description
SVector anchorMin get
set
The normalized position in the parent RectTransform that the lower left corner is anchored to.
SVector anchorMax get
set
Property Description
SVector anchoredPosition3D get
set
Property Description
SVector anchoredPosition get
set
Property Description
SVector sizeDelta get
set
The size of this RectTransform relative to the distances between the anchors.
SVector pivot get
set
The normalized position in this RectTransform that it rotates around.
SVector offsetMin get
set
The offset of the lower left corner of the rectangle relative to the lower left anchor.
SVector offsetMax get
set
The offset of the upper right corner of the rectangle relative to the upper right anchor.
SGameObject GameObject get
Property Description
Function Name |
---|
Property Name |
---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
void SetParent (SGameObject parent, bool worldPositionStays)
void SetInsetAndSizeFromParentEdge (int edge, float inset, float size)
void SetSizeWithCurrentAnchors (bool vertical, float size)
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