docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DoSlider

    DoSlider(Rect, ref float, Vector2, Vector2)

    Draws the slider

    Declaration
    protected virtual void DoSlider(Rect rect, ref float value, Vector2 sliderRange, Vector2 _)
    Parameters
    Type Name Description
    Rect rect

    The Rect to draw the slider.

    float value

    The current value, and also returns the modified value.

    Vector2 sliderRange

    The ranges of the slider.

    Vector2 _

    Not used

    DoSlider(Rect, ref float, Vector2)

    Draws a linear slider mapped to the min/max value range. Override this for different slider behavior (texture background, power).

    Declaration
    protected virtual void DoSlider(Rect rect, ref float value, Vector2 sliderRange)
    Parameters
    Type Name Description
    Rect rect

    The Rect to draw the slider.

    float value

    The current value, and also returns the modified value.

    Vector2 sliderRange

    The ranges of the slider.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)