askvity

How Do I Add Audio Mixers in Unity?

Published in Unity Audio 2 mins read

You can add audio mixers in Unity either through the project window or directly within the Unity editor interface.

Here's a breakdown of the process:

  1. Create a New Audio Mixer:

    • Using the Project Window: In your Project window, right-click in the desired folder. Then, navigate to Create > Audio > Audio Mixer. Name your new audio mixer.
    • Using the Editor Interface (potentially via a "+" button): In some Unity versions or setups, there may be a "+" button within the audio settings or an audio-related window (e.g., the Audio tab in the Inspector when no specific object is selected) that allows you to create an audio mixer. The referenced video mentions this possibility.
  2. Access and Configure the Audio Mixer:

    • Double-click the newly created audio mixer asset in your Project window to open the Audio Mixer window.
    • Within the Audio Mixer window, you can create groups (called "Groups" or "Mixer Groups") to organize your audio sources. These groups allow you to apply effects and control volume levels to multiple sounds simultaneously.
    • Assign audio sources in your scene to specific mixer groups by selecting the Audio Source component on your game object, and in the Inspector, finding the "Output" property. Drag the desired mixer group from the Audio Mixer window into the "Output" field, or select it from the dropdown menu.
  3. Adjust and Control Audio:

    • You can adjust the volume and effects applied to the assigned sounds in real time within the audio mixer.

Related Articles