Sound volume adjustment can be a very important feature, especially if your game is a standalone. After all, it can be very frustrating needing to access the operational system volume control. In this recipe, we will create a sound volume control GUI that can be switched from a single volume bar to independent music and effects controls.
For this recipe, you'll need the
soundtrack.mp3 audio files, available in the
To add volume control sliders to your scene, follow these steps:
soundtrack.mp3file. Make sure the 3D Sound option of the Audio Importer (in the Inspector view) ...