<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ReferenceComponent/loadReference(at:)-1en8b",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18ReferenceComponentV04loadC02atyAA6EntityC_tYaKFZ"
  },
  "title" : "loadReference(at:)"
}
-->

# loadReference(at:)

Asynchronously loads another entity file that an entity depends on.

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

## Parameters

`entity`

The entity that holds the `ReferenceComponent` to load.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)