---
title: loadingPolicy
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnreferencenode/loadingpolicy
---

# loadingPolicy

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

## Declaration

```swift
var loadingPolicy: SCNReferenceLoadingPolicy { get set }
```

## Discussion

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.

## See Also

### Loading and Unloading a Reference Node’s Content

- [referenceURL](scenekit/scnreferencenode/referenceurl.md)
- [load()](scenekit/scnreferencenode/load().md)
- [isLoaded](scenekit/scnreferencenode/isloaded.md)
- [unload()](scenekit/scnreferencenode/unload().md)
