loadAnchorAsync(contentsOf:withName:)
Asynchronously loads an anchor entity from a file URL.
Declaration
@MainActor @preconcurrency static func loadAnchorAsync(contentsOf url: URL, withName resourceName: String? = nil) -> LoadRequest<AnchorEntity>Parameters
- url:
A file URL representing the file to load.
- resourceName:
A unique name the method assigns to the resource it loads, for use in network synchronization.
Return Value
A resource loader that publishes the root entity in the loaded file as an AnchorEntity.