addChildNode

fun addChildNode(node: Node)

Add a node to the Scene as a direct child.

If the node is already in the scene, no change is made.

Parameters

node

the node to add as a child

Throws

if the child is the same object as the parent, or if the parent is a descendant of the child