Type Method

loadModelAsync(contentsOf:withName:)

Loads a model entity from a file URL asynchronously.

Declaration

static func loadModelAsync(contentsOf url: URL, withName resourceName: String? = nil) -> LoadRequest<ModelEntity>

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

A resource loader that publishes the root entity in the loaded file as a ModelEntity.

See Also

Loading a Flattened Model Entity

static func loadModel(named: String, in: Bundle?) -> ModelEntity

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

static func loadModel(contentsOf: URL, withName: String?) -> ModelEntity

Blocks your app while loading a model entity from a file URL.

static func loadModelAsync(named: String, in: Bundle?) -> LoadRequest<ModelEntity>

Loads a model entity from a file in a bundle asynchronously.