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