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

# init(named:in:loadingPolicy:)

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

## Declaration

```swift
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.
