<!--
{
  "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/AudioFileGroupResource/init(named:from:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22AudioFileGroupResourceC5named4from2inACSS_SSSo8NSBundleCtYaKcfc"
  },
  "title" : "init(named:from:in:)"
}
-->

# init(named:from:in:)

Initializes an audio resource from a Reality Composer Pro project.

```
@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`](/documentation/RealityKit/AudioFileGroupResource) from a
scene in a Reality Composer Pro project.

> 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)