Node's ID, generate it with nanoid if applicable.
Node's parent node, if root node, the parent node is replaced by the engine instance.
Node's children nodes.
Engine instance of the node's graph.
Get wether the node is loaded.
Get the node's ID.
Adds a child node to this node children and loads it.
Node to add as child.
New children array length.
Called at parent nodes fixedStep or directly by
the engine's step if this node is the rootNode
.
Calls the onFixedStep
and children's fixedStep
methods.
Called at parent nodes loading or directly by
the engine's loading if this node is the rootNode
.
Calls the onLoad
method and children's load
methods.
Called by the node's constructor at instantiation, this function is to be implemented when needed.
Called by the parent node at each fixed step of the loop, this function is to be implemented when needed.
Called by the parent node when loaded, this function is to be implemented when needed.
If this node is the engine's root node, this function will be called by the engine instead.
Called by the parent node at each step of the loop, this function is to be implemented when needed.
Called by the parent node at unload, this function is to be implemented when needed.
If this node is the engine's root node, this function will be called by the engine instead.
Called at parent nodes step or directly by
the engine's step if this node is the rootNode
.
Calls the onStep
method and children's step
methods.
Called at parent nodes unload or directly by
the engine's unload if this node is the rootNode
.
Calls the onUnload
method and children's unload
methods.
Generated using TypeDoc
An inner node is a node of the tree that has child nodes.
In most cases those nodes will be used as entity nodes and will be composed of component nodes. But those can be used for any other purpose (utility, scene orchestrating, etc.).