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 -> AudioFileGroupResourceParameters
- 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
nilto load from the app’s bundle.
Discussion
This method loads a preconfigured AudioFileGroupResource from a scene in a Reality Composer Pro project.