fungus

Open full view…

Setting the Audio Mixer in Music Manager

dataecto
Thu, 28 May 2020 23:08:51 GMT

I'm using Brackey's video on making a setting's menu as seen here https://www.youtube.com/watch?v=YOaYQrN1oYQ&t=307s Basically, I made a volume adjustment slider that changes the volume of the game by manipulating the exposed parameter of the audio mixer. However, the problem comes in that it doesn't work sounds being played via a Fungus flowchart. The Music Manager component doesn't have the AudioMixer as the Output. SO, I was wondering, how can I set the output in the music manager to be a certain audio mixer?

dataecto
Fri, 29 May 2020 17:59:15 GMT

Actually figured out a solution, so here are the steps on how to do it if you are utilizing Brackey's tutorial. First, create an audio source on any gameobject that is in your scene. You want to disable play on awake, and then put the mixer group onto the Output. Then, Instead of using the Fungus "Play Music" command block, you want to use the "Control Audio" command. This command lets you manipulate any audio source that's present in the scene, as opposed to "Play Music" making one that only exists during gameplay. The volume slider should now work!