Type Method

scene

Creates and returns an empty scene.

Declaration

+ (instancetype)scene;

Return Value

A new, empty scene object.

Discussion

An empty scene contains only a root SCNNode object with no contents. To populate the scene, add children to the root node.

See Also

Creating a Scene from a File

+ sceneNamed:

Loads a scene from a file with the specified name in the app’s main bundle.

+ sceneNamed:inDirectory:options:

Loads a scene from a file with the specified name in a specific subdirectory of the app’s main bundle.

+ sceneWithURL:options:error:

Loads a scene from the specified URL.