How to Unity

A Settings Menu in Unity

Making a settings menu to tweak the volume in Unity

Daniele Quero, PhD
4 min readMay 14, 2024

--

In this tutorial, I will show how to create a settings menu functionality. In particular, for this example, I will make a volume changer feature, introducing some basic info about the volume mixer and using what we know about the Unity UI Slider component.

Once our pause menu object is done we can proceed to the functionality.

AudioMixer

An AudioMixer will allow the creation of several groups, like channels in a… well, a mixer. Each AudioSource in your game can now be played inside a specific group, so you can tweak them as you prefer — setting pitch, volume etc. for all dialogues, the music or the fx.

An AudioMixer can be created via the creation menu and will appear as an asset in your project.

Let’s now add a group, in my project, it is “Music”. Notice how we have at least one group: the Master group, every other is to be considered as its child.

--

--

Daniele Quero, PhD

A professional developer with passion for game developing and skill-growing. A former Nuclear Physics Researcher who changed his life to pursue his dreams