Audio

Volumes #

Setting Needs a mixer?
Master Volume No. Without a mixer it controls AudioListener.volume.
Music, Sound Effects, Voice, Interface, Ambience Yes: each controls an exposed parameter of your Audio Mixer.
Mute In Background No. Silences the game while its window isn't in focus (off by default).
Speaker Setup (automatic, mono, stereo, quad, 5.1, 7.1) No. Changes Unity's speaker mode; changing it restarts audio, so sounds playing at that moment stop. Automatic keeps your project's setting.
Night Mode (optional, Read) Your game lowers its dynamic range when audio.night-mode is on (for example a compressor snapshot on your mixer).

Volume settings without a mixer are hidden, and the Check tab offers to fix it.

Test sound: give a volume setting a Preview Clip (and its Preview Group, the mixer group it controls) and the clip plays while the player moves that slider, at the slider's volume.

The starter mixer #

Home tab, step 2 (or Setup tab > Create starter mixer) copies a mixer with the groups Master, Music, SFX, Voice, UI and Ambient and the exposed parameters MasterVolume, MusicVolume, SfxVolume, VoiceVolume, UiVolume and AmbientVolume, then assigns it. Route your AudioSources to the matching groups.

To use your own mixer, expose each group's volume (right-click the Volume field > Expose) and type the parameter name into the volume setting. Sliders map linearly to decibels the way players expect (0% is silent).

Each theme has move, submit, back, open, slider, toggle and error sounds (Kenney Interface Sounds, CC0). They play through the front end's UI Sound Player; set its output to your UI mixer group so the Interface volume controls them. Menu sounds keep playing while the game is paused.

Kit window > Setup > Options for each screen > Menu music (the Menu Music component on the front end). Give the main menu, pause, settings, credits and loading screen a track each. Leave Settings or Credits empty and what's playing carries on; leave the others empty for silence there. Tracks crossfade (Fade Seconds, 0 cuts), stop when no menu shows so your game's music takes over, and keep playing while the game is paused. Output is the mixer's Music group, so the Music Volume setting controls them. The demos' track is Samples/Art/DemoMenuMusic.wav.

Pause #

In Freeze pause mode Shipready pauses AudioListener (game audio stops) and restores it exactly on resume. See Pause and multiplayer hooks.

Something unclear or wrong? Tell us · Get help