Unity Audio: How to make a UI volume slider (the right way)

Описание к видео Unity Audio: How to make a UI volume slider (the right way)

More about me: https://johnleonardfrench.com
Royalty free music for your games: https://assetstore.unity.com/packages...
Game development tips for beginners: https://gamedevbeginner.com

For those that have asked how to save and load the Volume Setting using PlayerPrefs, here you go: https://gamedevbeginner.com/the-right... (please note that you will need to add the script to a different object, i.e.not the Slider, if your Slider's menu panel is disabled when the Scene starts. Otherwise, the setting will only load when visiting the menu).

If you can't see the Dynamic Float option when connecting the Script, it's a bug in some versions of Unity. Workaround here: https://gamedevbeginner.com/the-right...

----------

Learn how to create UI audio volume controls in Unity (the right way) using exposed parameters and the Unity Audio Mixer. This is extremely useful for making UI menu sliders to control the volume of audio, music or multiple sound groups in your game.

However, the standard method for creating a user volume control in Unity doesn't actually work properly! and makes sliders that are far too sensitive...

But luckily, it's easy to fix.

In this video I show you how to make a volume slider the right way, by using logarithmic conversion with a simple calculation, for an even, smooth, audio slider control.

For more information, full written steps explaining how to do everything in this video and more, visit my website: https://gamedevbeginner.com/the-right...

If you liked this video, and would like to see more, let me know! Like, subscribe and leave a comment letting me know what else you'd like it see.

Комментарии

Информация по комментариям в разработке