---
title: "loadReference(at:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/referencecomponent/loadreference(at:)-1en8b"
---

# loadReference(at:)

Asynchronously loads another entity file that an entity depends on.

## Declaration

```swift
@MainActor static func loadReference(at entity: Entity) async throws
```

## Parameters

- `entity`: The entity that holds the doc://com.apple.RealityKit/documentation/RealityKit/ReferenceComponent to load.
