RectTransform
csharp
public sealed class RectTransform : TransformNamespace NodeWorld.Flux.
The Rect Transform of a UI object: its place and size in its parent rect.
Properties
anchoredPosition
csharp
public Vector2 anchoredPosition { get; set; }Position of the pivot from the anchors.
sizeDelta
csharp
public Vector2 sizeDelta { get; set; }Size, added to the distance between the anchors.
anchorMin
csharp
public Vector2 anchorMin { get; set; }Lower left anchor, in the parent rect (0 to 1).
anchorMax
csharp
public Vector2 anchorMax { get; set; }Upper right anchor, in the parent rect (0 to 1).
pivot
csharp
public Vector2 pivot { get; set; }The point the rect turns and scales around (0 to 1 of its size).
Methods
GetWorldCorners
csharp
public void GetWorldCorners(Vector3[] corners)The four corners in world space (bottom left, top left, top right, bottom right).
ForceRebuildLayout
csharp
public void ForceRebuildLayout()Lays out this rect and its children now (LayoutRebuilder.ForceRebuildLayoutImmediate).
