loadModelAsync(named:in:)
Asynchronously loads a model entity from a bundle.
Declaration
@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
nilto search the app’s main bundle.
Mentioned in
Return Value
A resource loader that publishes the root entity in the loaded file as a ModelEntity.