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

# loadModelAsync(named:in:)

Asynchronously loads a model entity from a bundle.

## Declaration

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

## 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.

## Mentioned in

Reducing CPU Utilization in Your RealityKit App

## Return Value

Return Value A resource loader that publishes the root entity in the loaded file as a ModelEntity.

## See Also

### Loading a flattened model entity

- [loadModel(named:in:)](realitykit/entity/loadmodel(named:in:).md)
- [loadModel(contentsOf:withName:)](realitykit/entity/loadmodel(contentsof:withname:).md)
- [loadModelAsync(contentsOf:withName:)](realitykit/entity/loadmodelasync(contentsof:withname:).md)
