Sound-volume adjustment can be a very important feature, especially if your game is a standalone. After all, it can be very frustrating for players to have to access the Operating System volume control. In this recipe, we will use the Audio Mixer feature to create independent volume controls for Music and Sound FX.
Adding volume control with Audio Mixers
Getting ready
For this recipe, we have provided a Unity package named VolumeControl.unitypackage, containing an initial scene featuring soundtrack music and sound effects. The file is available inside the 04_10 folder.