AudioSlider

Contents

AudioSlider#

NAMESPACE:

UnityUtils.ScriptUtils.Audio

The AudioSlider is a script you can apply onto a slider object to have it automatically work with the AudioManager script’s volume types. You can select the type of volume it will change, and it will change that volume when the slider gets updated.

Tip

Add a UIButtonHoverExpand to the handle of the slider to have a small expanding animation!

Functions#

UnityUtils.ScriptUtils.Audio.AudioSlider : MonoBehaviour

Public Functions

void SetSliderValue()#

Sets the slider’s volume to the current volumeType value.

Public Members

AudioManager.VolumeType volumeType

Type of audio volume to modify on update.

bool logSliderValueChange = true#

If true, this will print a debug log of the updated volume on update. Warning: While being used, this will output lots of Debug.Logs.