---
title: "set(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/audiomixgroupscomponent/set(_:)"
---

# set(_:)

Adds the given AudioMixGroup to the component.

## Declaration

```swift
mutating func set(_ mixGroup: AudioMixGroup)
```

## Discussion

Discussion important: Adding an audio mix group replaces any existing audio mix group with the same name.
