Instance Property

parentNode

The node’s parent in the scene graph hierarchy.

Declaration

@property(nonatomic, readonly) SCNNode *parentNode;

Discussion

For a scene’s rootNode object, the value of this property is nil.

See Also

Managing the Node Hierarchy

childNodes

An array of the node’s children in the scene graph hierarchy.

- addChildNode:

Adds a node to the node’s array of children.

- insertChildNode:atIndex:

Adds a node to the node’s array of children at a specified index.

- removeFromParentNode

Removes the node from its parent’s array of child nodes.

- replaceChildNode:with:

Removes a child from the node’s array of children and inserts another node in its place.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software