void SetParent ( 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.
Rect get
Property Description
anchorMin get set
The normalized position in the parent RectTransform that the lower left corner is anchored to.
anchorMax get set
Property Description
anchoredPosition3D get set
Property Description
anchoredPosition get set
Property Description
sizeDelta get set
The size of this RectTransform relative to the distances between the anchors.
pivot get set
The normalized position in this RectTransform that it rotates around.
offsetMin get set
The offset of the lower left corner of the rectangle relative to the lower left anchor.
offsetMax get set
The offset of the upper right corner of the rectangle relative to the upper right anchor.
GameObject get
Property 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 get
Space.Host.ExecutingObject.RectTransform.SetParent(anotherGameObject)Space.Host.ExecutingObject.RectTransform.SetInsetAndSizeFromParentEdge(2, 3.0, 10.0)Space.Host.ExecutingObject.RectTransform.SetSizeWithCurrentAnchors(true, 10.0)rect = Space.Host.ExecutingObject.RectTransform.RectSpace.Host.ExecutingObject.RectTransform.anchorMin= Vector.New(0.3,0.3,0)Space.Host.ExecutingObject.RectTransform.anchorMax= Vector.New(0.7,0.6,0)Space.Host.ExecutingObject.RectTransform.anchoredPosition3D= Vector.New(0.7,0.6,0)Space.Host.ExecutingObject.RectTransform.anchoredPosition= Vector.New(0.7,0.6,0)Space.Host.ExecutingObject.RectTransform.sizeDelta= Vector.New(90,90,0)Space.Host.ExecutingObject.RectTransform.pivot= Vector.New(0.4,0.4,0)Space.Host.ExecutingObject.RectTransform.offsetMin= Vector.New(-50,-50,0)Space.Host.ExecutingObject.RectTransform.offsetMax= Vector.New(50,50,0)theGameObject = Space.Host.ExecutingObject.RectTransform.GameObject