<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AudioFileResource/init(named:from:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation17AudioFileResourceC5named4from2inACSS_SSSo8NSBundleCSgtYaKcfc"
  },
  "title" : "init(named:from:in:)"
}
-->

# 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.

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

## Discussion> Important: The name provided **must** be unique.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)