- Home /
Creating new groups in the Audio Mixer on runtime.
Dear devs,
I am currently building an adaptable music sequencer for use in games as a replacement of external plugins like FMOD or Wwise. It is pretty basic with a main script controlling 'music-states' which in turn control 'music-layers'.
I have currently made it in a way that I can easily add states by adding an instance to the array in the main script. What I would like is to create a new group in the Audio Mixer for each state when the game starts, so I won't have to manually create each group every time I start a new project.
I currently only managed to assign all the audio sources to existing groups by code, but I couldn't find a way to create new groups in the Audio Mixer.
I hope you guys can help me, if the option at all exists....
Thanks! Ruben
Your answer
![](https://koobas.hobune.stream/wayback/20220612093958im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
play audio for few seconds on key hit 1 Answer
Playing a soundclip at random from an array. C# 2 Answers
Keep playing audio on android even if screen dim or sleep 0 Answers