Instance Property

referenceURL

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

Declaration

@property(copy, nonatomic) NSURL *referenceURL;

Discussion

When the reference node loads its content (either automatically, according to the loadingPolicy property, or when you call the load method), SceneKit loads the referenced scene file. All children of the scene file’s root node become children of the reference node.

See Also

Loading and Unloading a Reference Node’s Content

loadingPolicy

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

- load

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

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.