Contents

overrideAssetURLs

An option to attempt loading external resources using their URLs as specified in a scene file.

Declaration

static let overrideAssetURLs: SCNSceneSource.LoadingOption

Discussion

The value for this key is an NSNumber object containing a Boolean value. The default value is false.

A scene file may reference external resources, such as image files used as textures in material properties, using relative URL paths. When loading from a scene source, SceneKit by default attempts to resolve these references relative to the directory containing the scene file. If you set this option’s value to true, SceneKit searches for external resources only within the directories you specify using the assetDirectoryURLs option.

See Also

Type Properties