Node
Description:
Class used for building a hierarchical tree structure of game objects.
Class Object: Node Class.
Inherits from: Object.
order
Type: Field.
Description:
The order of the node in the parent's children array.
Signature:
order: integer
angle
Type: Field.
Description:
The rotation angle of the node in degrees.
Signature:
angle: number
angleX
Type: Field.
Description:
The X-axis rotation angle of the node in degrees.
Signature:
angleX: number
angleY
Type: Field.
Description:
The Y-axis rotation angle of the node in degrees.
Signature:
angleY: number
scaleX
Type: Field.
Description:
The X-axis scale factor of the node.
Signature:
scaleX: number
scaleY
Type: Field.
Description:
The Y-axis scale factor of the node.
Signature:
scaleY: number
x
Type: Field.
Description:
The X-axis position of the node.
Signature:
x: number
y
Type: Field.
Description:
The Y-axis position of the node.
Signature:
y: number
z
Type: Field.
Description:
The Z-axis position of the node.
Signature:
z: number
position
Type: Field.
Description:
The position of the node as a Vec2 object.
Signature:
position: Vec2
skewX
Type: Field.
Description:
The X-axis skew angle of the node in degrees.
Signature:
skewX: number
skewY
Type: Field.
Description:
The Y-axis skew angle of the node in degrees.
Signature:
skewY: number
visible
Type: Field.
Description:
Whether the node is visible.
Signature:
visible: boolean
anchor
Type: Field.
Description:
The anchor point of the node as a Vec2 object.
Signature:
anchor: Vec2
width
Type: Field.
Description:
The width of the node.
Signature:
width: number
height
Type: Field.
Description:
The height of the node.
Signature:
height: number
size
Type: Field.
Description:
The size of the node as a Size object.
Signature:
size: Size
tag
Type: Field.
Description:
The tag of the node as a string.
Signature:
tag: string
opacity
Type: Field.
Description:
The opacity of the node, should be 0 to 1.0.
Signature:
opacity: number
color
Type: Field.
Description:
The color of the node as a Color object.
Signature:
color: Color
color3
Type: Field.
Description:
The color of the node as a Color3 object.
Signature:
color3: Color3
passOpacity
Type: Field.
Description:
Whether to pass the opacity value to child nodes.
Signature:
passOpacity: boolean
passColor3
Type: Field.
Description:
Whether to pass the color value to child nodes.
Signature:
passColor3: boolean
transformTarget
Type: Field.
Description:
The target node acts as a parent node for transforming this node.
Signature:
transformTarget: Node
scheduler
Type: Field.
Description:
The scheduler used for scheduling update and action callbacks.
Signature:
scheduler: Scheduler
hasChildren
Type: Readonly Field.
Description:
Whether the node has children.
Signature:
const hasChildren: boolean
children
Type: Readonly Field.
Description:
The children of the node as an Array object, could be nil.
Signature:
const children: Array
parent
Type: Readonly Field.
Description:
The parent node of the node.
Signature:
const parent: Node
running
Type: Readonly Field.
Description:
Whether the node is currently running in a scene tree.
Signature:
const running: boolean
scheduled
Type: Readonly Field.
Description:
Whether the node is currently scheduling a function or a coroutine for updates.
Signature:
const scheduled: boolean
actionCount
Type: Readonly Field.
Description:
The number of actions currently running on the node.
Signature:
const actionCount: integer
data
Type: Readonly Field.
Description:
Additional data stored on the node as a Dictionary object.
Signature:
const data: Dictionary
touchEnabled
Type: Field.
Description:
Whether touch events are enabled on the node.
Signature:
touchEnabled: boolean
swallowTouches
Type: Field.
Description:
Whether the node should swallow touch events.
Signature:
swallowTouches: boolean
swallowMouseWheel
Type: Field.
Description:
Whether the node should swallow mouse wheel events.
Signature:
swallowMouseWheel: boolean
keyboardEnabled
Type: Field.
Description:
Whether keyboard events are enabled on the node.
Signature:
keyboardEnabled: boolean
controllerEnabled
Type: Field.
Description:
Whether controller events are enabled on the node.
Signature:
controllerEnabled: boolean
renderGroup
Type: Field.
Description:
Whether to group the node's rendering with all its recursive children.
Signature:
renderGroup: boolean
showDebug
Type: Field.
Description:
Whether debug graphic should be displayed for the node.
Signature:
showDebug: boolean
renderOrder
Type: Field.
Description:
The rendering order number for group rendering. Nodes with lower rendering orders are rendered earlier.
Signature:
renderOrder: integer
addChild
Type: Function.
Description: