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

# init(named:loadingPolicy:)

Creates a reference component with a name and loading policy.

## Declaration

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

## Parameters

- `name`: The name of the entity to load.
- `loadingPolicy`: A loading policy indicating when the app loads the entity.

## Discussion

Discussion Place references in the app’s main bundle.
