Type Method

loadAnchorAsync(named:in:)

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

Declaration

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

Parameters

name

The base name of the file to load, omitting the file extension.

bundle

The bundle containing the file. Use nil to search the app’s main bundle.

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.