Type Method

loadAnchor(named:in:)

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

Declaration

static func loadAnchor(named name: String, in bundle: Bundle? = nil) throws -> 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

The root entity in the loaded file, cast as an AnchorEntity.

See Also

Loading an Anchor Entity

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.