Search Results for

    Show / Hide Table of Contents

    Class VolumeSlider

    Bind a slider input to a channel and the local storage

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    VolumeBinder
    VolumeSlider
    Inherited Members
    VolumeBinder.MIN_VOLUME
    VolumeBinder.MAX_VOLUME
    VolumeBinder.channel
    VolumeBinder.Value
    VolumeBinder.Set(float)
    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 Source

    Init()

    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
    VolumeBinder.Init()
    Remarks

    If not enabled, do not forget to call this method once the scene is loaded.

    | Edit this page View Source

    OnValidate()

    MonoBehaviour is a base class that many Unity scripts derive from.

    Declaration
    protected override void OnValidate()
    Overrides
    VolumeBinder.OnValidate()
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX