Creating a node tree
A node tree for a scene is created as a parent child relation. As a scene acts similar to a root node, another node acts as a child to it. Following are some common methods used to make a node tree:
addChild
: It adds a node to the end of the receiver's list of child nodesinsertChild:atIndex
: It inserts a child at a specific position in the receiver's list of child nodes
If you want to remove a node from a node tree, you can use the following method:
removeFromParent
: It removes the receiving node from its parent