transform
2d · 3d · 3 properties · 2D
Where the node sits in its parent's space, how it is turned and how big it is. A node without one is at its parent: propagate_transforms hands the parent's world transform straight down, which is what a node that only groups or only draws UI wants.
In a scene, transform is the node key that applies it. A script reaches each property below as a field on node.transform: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.transform.get() and node.transform.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
position | vec3 | [0,0,0] | Where the node sits in its parent's space |
rotation_euler | vec3 | [0,0,0] | Local rotation as euler angles in radians, x then y then z |
scale | vec3 | [1,1,1] | Size relative to the parent's |