---
title: "loadAnchorAsync(named:in:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/entity/loadanchorasync(named:in:)"
---

# loadAnchorAsync(named:in:)

Asynchronously loads an anchor entity from a bundle.

## Declaration

```swift
@MainActor @preconcurrency static func loadAnchorAsync(named name: String, in bundle: Bundle? = nil) -> LoadRequest<AnchorEntity>
```

## Parameters

- `name`: The base name of the file to load, omitting the filename extension.
- `bundle`: The bundle containing the file. Use nil to search the app’s main bundle.

## Return Value

Return Value A resource loader that publishes the root entity in the loaded file as an AnchorEntity.

## See Also

### Loading an anchor entity

- [loadAnchor(named:in:)](realitykit/entity/loadanchor(named:in:).md)
- [loadAnchor(contentsOf:withName:)](realitykit/entity/loadanchor(contentsof:withname:).md)
- [loadAnchorAsync(contentsOf:withName:)](realitykit/entity/loadanchorasync(contentsof:withname:).md)
