Type Method

loadAnchor(contentsOf:withName:)

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

Declaration

static func loadAnchor(contentsOf url: URL, withName resourceName: String? = nil) throws -> 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

The root entity in the loaded file, cast 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 loadAnchorAsync(named: String, in: Bundle?) -> LoadRequest<AnchorEntity>

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