Instance Method

load

Loads content into the node from its referenced external scene file.

Declaration

- (void)load;

Discussion

When SceneKit loads the referenced scene file, all children of the scene file’s root node become children of the reference node.

If the node has already been loaded (either automatically, according to the loadingPolicy property, or through a previous call to this method), calling this method has no effect.

See Also

Loading and Unloading a Reference Node’s Content

referenceURL

The URL to a scene file from which to load content for the reference node.

loadingPolicy

An option for whether to load the node’s content automatically.

loaded

A Boolean value that indicates whether the reference node has already loaded its content.

- unload

Removes the node’s children and marks the node as not loaded.