RectTransform
class in UnityEngine · UnityEngine.CoreModule · inherits from Transform
In Tassix
A Transform laid out as a rectangle inside its parent's: anchors (fractions of the parent rect), a pivot (a fraction of its own), a size delta and an anchored position. Its local x/y position follows from them, so changing the layout, or the parent's size, moves it (keeping its anchored position); setting localPosition changes the anchored position instead. A GameObject gets one in place of its Transform when it's added.
Properties 11
Vector2 anchorMax { get; set; }Vector2 anchorMin { get; set; }Vector2 anchoredPosition { get; set; }Vector3 anchoredPosition3D { get; set; }Object? drivenByObject { get; }DrivenTransformProperties drivenProperties { get; }Vector2 offsetMax { get; set; }Vector2 offsetMin { get; set; }Vector2 pivot { get; set; }Rect rect { get; }The rectangle in local space, relative to the pivot.
Vector2 sizeDelta { get; set; }Methods 5
void ForceUpdateRectTransforms()void GetLocalCorners(Vector3[] fourCornersArray)Bottom left, top left, top right, bottom right.
void GetWorldCorners(Vector3[] fourCornersArray)void SetInsetAndSizeFromParentEdge(Edge edge, float inset, float size)void SetSizeWithCurrentAnchors(Axis axis, float size)Events 1
static event ReapplyDrivenProperties? reapplyDrivenPropertiesNot in Tassix yet 1
sendChildDimensionsChange
Checked against Unity
Conformance scenarios that exercise it, recorded in Unity and compared event by event.