Skip to main content
Represents a node in the hierarchy, providing transform properties and access to parent and child nodes.

Fields

position

Represents a node in the hierarchy, providing transform properties and access to parent and child nodes. The local position of the node.

rotation

The local rotation of the node in radians.

scale

worldTransform

The world transform of the node.

x

The x-coordinate of the local position.

y

The y-coordinate of the local position.

scaleX

The x component of the local scale.

scaleY

The y component of the local scale.

children

The node’s children.

parent

The parent of the node, or nil if it has none.

Methods

decompose

Updates the node’s position, rotation, and scale from the given world transform.