<!--
{
  "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/init(named:in:loadingPolicy:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18ReferenceComponentV5named2in13loadingPolicyACSS_So8NSBundleCAC07LoadingH0Otcfc"
  },
  "title" : "init(named:in:loadingPolicy:)"
}
-->

# init(named:in:loadingPolicy:)

Creates a reference component with a name, loading policy, and bundle.

```
init(named name: String, in bundle: Bundle, loadingPolicy: ReferenceComponent.LoadingPolicy = .onDemand)
```

## Parameters

`name`

The name of the entity to load.

`bundle`

The bundle to search for the resource.

`loadingPolicy`

A loading policy indicating when the app loads the entity.

---

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)