Challenge 5: Create a Custom Audio Mix in the Scene

Tutorial

·

Beginner

·

+10XP

·

20 mins

·

(76)

Unity Technologies

Challenge 5: Create a Custom Audio Mix in the Scene

Learn how to create a custom audio mix to vary the levels at which various sounds play within your project

Languages available:

1. Creating custom Mixes

  • Open the Audio Mixer, (Window > Audio > Audio Mixer)
8693e8a8-39b0-4327-9637-d2937d46f96a_Unity_lrSlEWU6B8.png
  • To customize the audio mix of your scene, click the plus button to add a new Mixer and name it Master.
2cd74645-a964-4253-8625-dc897d16d64c_dTFU1xVCZY.png
  • In the Groups section create two additional groups, one called SFX and the other called Music.
6438c4ab-075a-4345-b8fb-4da74bb7404e_U6uBsuXWl6.png
  • In the scene, set the AudioGroups property of the Audio Sources to one of the groups. The AudioSource_Jazz GameObject should be a part of the Music group and the other AudioSources (Car , Player, and Horn_Collider) should be set to the SFX Group.
629ab6e9-9b54-485d-acf5-7cd7ffb8736a_Unity_AmZAoCMF5d.png
a687b7f1-6425-403f-927d-b7f198680968_Unity_RuKDlSWwBq.png

The scene’s audio can now be controlled from the mixer avoiding the need to manually change individual Audio Sources or write custom code to control them for procedurally.

  • Adjust the SFX groups level in the mix by dragging the orange arrow down to lower the overall volume of the SFX Audio Sources.
68c45b4b-5d70-4224-9669-6077895c74ff_t7aGIL6nEO.png

Complete this tutorial