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

# load(named:from:in:)

Loads a preconfigured AudioFileResource 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

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

## Discussion

Discussion important: The name provided must be unique.
