Contents

init(named:from:in:)

Initializes a preconfigured AudioFileResource asynchronously from a Reality Composer Pro project with the given name as the the prim-path of the AudioFile, and the scene as the name of the USD file name.

Declaration

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

Discussion

See Also

Loading audio from a bundle