---
title: "init(named:at:loadingPolicy:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/referencecomponent/init(named:at:loadingpolicy:)"
---

# init(named:at:loadingPolicy:)

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

## Declaration

```swift
init(named name: String, at bundlePath: String = "", loadingPolicy: ReferenceComponent.LoadingPolicy = .onDemand)
```

## Parameters

- `name`: The name of the entity to load.
- `bundlePath`: The bundle path to search for the resource. Specify the path relative to the Resources directory.
- `loadingPolicy`: A loading policy that indicates when the app loads the entity.
