Contents

load(named:from:in:)

Loads an audio resource from a Reality Composer Pro project.

Declaration

@MainActor @preconcurrency static func load(named name: String, from scene: String, in bundle: Bundle? = nil) throws -> AudioFileGroupResource

Parameters

  • name:

    The USD Prim path to the resource in the Reality Composer Pro project to load.

  • scene:

    The name of the Reality Composer Pro scene to load from.

  • bundle:

    The bundle that contains the project. Leave nil to load from the app’s bundle.

Discussion

This method loads a preconfigured AudioFileGroupResource from a scene in a Reality Composer Pro project.

See Also

Creating a resource