loadingPolicy
An option for whether to load the node’s content automatically.
Declaration
var loadingPolicy: SCNReferenceLoadingPolicy { get set }Discussion
If this property’s value is SCNReferenceLoadingPolicy.immediate (the default), instantiating a reference node from an archive (using the NSKeyedUnarchiver class) automatically loads the node’s external content. Set this property to SCNReferenceLoadingPolicy.onDemand before archiving an SCNReferenceNode object if you don’t want that reference node to automatically load its content when unarchived. In that case, call the load() method after unarchiving when you want to load the node’s content.