Type Method

loadAnchorAsync(contentsOf:withName:)

Loads an anchor entity from a file URL asynchronously.

Declaration

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 to assign to the loaded resource, for use in network synchronization.

Return Value

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

See Also

Loading an Anchor Entity

static func loadAnchor(named: String, in: Bundle?) -> AnchorEntity

Blocks your app while loading an anchor entity from a file in a bundle.

static func loadAnchor(contentsOf: URL, withName: String?) -> AnchorEntity

Blocks your app while loading an anchor entity from a file URL.

static func loadAnchorAsync(named: String, in: Bundle?) -> LoadRequest<AnchorEntity>

Loads an anchor entity from a file in a bundle asynchronously.