Contents

loadBodyTrackedAsync(named:in:)

Asynchronously loads a body-tracked entity from a bundle.

Declaration

@MainActor @preconcurrency static func loadBodyTrackedAsync(named name: String, in bundle: Bundle? = nil) -> LoadRequest<BodyTrackedEntity>

Parameters

  • name:

    The base name of the file to load, omitting the filename 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 a BodyTrackedEntity.

See Also

Loading a flattened body-tracked entity