docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPositionOnSlider

    GetPositionOnSlider(float, Vector2)

    Maps a light unit value onto the slider. Keeps in sync placement of markers and tooltips with the slider power. Override this in case of non-linear slider.

    Declaration
    protected virtual float GetPositionOnSlider(float value, Vector2 valueRange)
    Parameters
    Type Name Description
    float value

    The value to get the position at

    Vector2 valueRange

    The ranges of the values

    Returns
    Type Description
    float

    The position

    GetPositionOnSlider(float)

    Maps a light unit value onto the slider. Keeps in sync placement of markers and tooltips with the slider power. Override this in case of non-linear slider.

    Declaration
    protected virtual float GetPositionOnSlider(float value)
    Parameters
    Type Name Description
    float value

    The value to get the position

    Returns
    Type Description
    float

    The position on 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)