Instance Property

name

A name associated with the node.

Declaration

@property(nonatomic, copy) NSString *name;

Discussion

You can provide a descriptive name for a node to make managing your scene graph easier. Nodes loaded from a scene file may have names assigned by an artist using a 3D authoring tool. Use the childNodeWithName:recursively: or childNodesPassingTest: method to retrieve a node from a scene graph by its name, or the SCNSceneSource class to examine nodes in a scene file without loading its scene graph.

The names of nodes and their attached objects are saved when you export a scene to a file using its writeToURL:options:delegate:progressHandler: method, and appear in the Xcode scene editor. The SceneKit statistics view (see showsStatistics) also shows the names of nodes with attached cameras.

See Also

Managing Node Content

light

The light attached to the node.

camera

The camera attached to the node.

geometry

The geometry attached to the node.

morpher

The morpher object responsible for blending the node’s geometry.

skinner

The skinner object responsible for skeletal animations of node’s contents.

categoryBitMask

A mask that defines which categories the node belongs to.

SCNBoundingVolume

Methods common to the SCNNode and SCNGeometry classes for measuring location and size.