Type Method

loadBodyTracked(named:in:)

Blocks your app while loading a body-tracked entity from a file in a bundle.

Declaration

static func loadBodyTracked(named name: String, in bundle: Bundle? = nil) throws -> BodyTrackedEntity

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 a BodyTrackedEntity.

See Also

Loading a Flattened Body-Tracked Entity

static func loadBodyTracked(contentsOf: URL, withName: String?) -> BodyTrackedEntity

Blocks your app while loading a body-tracked entity from a file URL.

static func loadBodyTrackedAsync(named: String, in: Bundle?) -> LoadRequest<BodyTrackedEntity>

Loads a body-tracked entity from a file in a bundle asynchronously.