-
Notifications
You must be signed in to change notification settings - Fork 5
Component UI Transform
Berke edited this page Jun 23, 2026
·
1 revision
The UITransform component controls layout, positioning, scaling, and rotation of UI elements in screen space.
ui.isValidReturns whether the UITransform component is valid.
booleanui.anchorMinMinimum anchor point of the UI element.
Vector2ui.anchorMin = Vector2(0, 0)ui.anchorMaxMaximum anchor point of the UI element.
Vector2ui.pivotPivot point used for rotation and scaling.
Vector2ui.positionLocal UI position.
Vector2ui.scaleUI scale factor.
Vector2ui.rotationRotation in degrees.
numberui.resolvedPositionFinal computed screen position after layout calculations.
Vector2ui.resolvedSizeFinal computed size after layout calculations.
Vector2local ui = entity.uiTransform
ui.anchorMin = Vector2(0, 0)
ui.anchorMax = Vector2(1, 1)
ui.position = Vector2(100, 200)