Class VolumeSlider
Bind a slider input to a channel and the local storage
Inherited Members
Namespace: GGL.Audio
Assembly: GGL.dll
Syntax
[AddComponentMenu("GG-Library/UI/Audio/Volume Slider")]
[RequireComponent(typeof(Slider))]
[HelpURL("https://ggl.yoannhaffner.com/articles/audio.html#interaction")]
public class VolumeSlider : VolumeBinder
Methods
| Edit this page View SourceInit()
Read the local storage to initialize the channel volume and the slider. This method is called once the component is enabled.
Declaration
public override void Init()
Overrides
Remarks
If not enabled, do not forget to call this method once the scene is loaded.
OnValidate()
MonoBehaviour is a base class that many Unity scripts derive from.
Declaration
protected override void OnValidate()