---
title: ReferenceComponent.LoadingPolicy.onDemand
framework: realitykit
role: symbol
role_heading: Case
path: realitykit/referencecomponent/loadingpolicy-swift.enum/ondemand
---

# ReferenceComponent.LoadingPolicy.onDemand

Loads the contents from the referenced entity file when your app tells it to.

## Declaration

```swift
case onDemand
```

## Discussion

Discussion Use loadReference(at:) to load the referenced entity.
