Contents

init(named:from:in:)

Initializes an audio resource from a Reality Composer Pro project.

Declaration

@MainActor @preconcurrency convenience init(named name: String, from scene: String, in bundle: Bundle) async throws

Parameters

  • name:

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

  • scene:

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

  • bundle:

    The bundle that contains the project.

Discussion

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

See Also

Creating a resource