---
title: "load(named:from:in:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/audiofilegroupresource/load(named:from:in:)"
---

# load(named:from:in:)

Loads an audio resource from a Reality Composer Pro project.

## Declaration

```swift
@MainActor @preconcurrency static func load(named name: String, from scene: String, in bundle: Bundle? = nil) throws -> AudioFileGroupResource
```

## Parameters

- `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 nil to load from the app’s bundle.

## Discussion

Discussion This method loads a preconfigured AudioFileGroupResource from a scene in a Reality Composer Pro project. important: The name provided must be unique.

## See Also

### Creating a resource

- [init(_:)](realitykit/audiofilegroupresource/init(_:).md)
- [init(named:from:in:)](realitykit/audiofilegroupresource/init(named:from:in:).md)
