Contents

loadBodyTrackedAsync(contentsOf:withName:)

Asynchronously loads a body-tracked entity from a file URL.

Declaration

@MainActor @preconcurrency static func loadBodyTrackedAsync(contentsOf url: URL, withName resourceName: String? = nil) -> LoadRequest<BodyTrackedEntity>

Parameters

  • url:

    A file URL representing the file to load.

  • resourceName:

    A unique name the method assigns to the resource it loads, for use in network synchronization.

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