docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SettingsSlider

    SettingsSlider(GUIContent, UserSetting<float>, float, float, string)

    A slider that implements search filtering and context menu reset.

    Declaration
    public static float SettingsSlider(GUIContent label, UserSetting<float> value, float min, float max, string searchContext)
    Parameters
    Type Name Description
    GUIContent label

    Label in front of the value field.

    UserSetting<float> value

    The value to edit.

    float min

    The value at the left end of the slider.

    float max

    The value at the right end of the slider.

    string searchContext

    A string representing the current search query. Empty or null strings are to be treated as matching any value.

    Returns
    Type Description
    float

    The value that has been set by the user.

    SettingsSlider(string, UserSetting<float>, float, float, string)

    A slider that implements search filtering and context menu reset.

    Declaration
    public static float SettingsSlider(string label, UserSetting<float> value, float min, float max, string searchContext)
    Parameters
    Type Name Description
    string label

    Label in front of the value field.

    UserSetting<float> value

    The value to edit.

    float min

    The value at the left end of the slider.

    float max

    The value at the right end of the slider.

    string searchContext

    A string representing the current search query. Empty or null strings are to be treated as matching any value.

    Returns
    Type Description
    float

    The value that has been set by the user.

    SettingsSlider(GUIContent, UserSetting<int>, int, int, string)

    A slider that implements search filtering and context menu reset.

    Declaration
    public static int SettingsSlider(GUIContent label, UserSetting<int> value, int min, int max, string searchContext)
    Parameters
    Type Name Description
    GUIContent label

    Label in front of the value field.

    UserSetting<int> value

    The value to edit.

    int min

    The value at the left end of the slider.

    int max

    The value at the right end of the slider.

    string searchContext

    A string representing the current search query. Empty or null strings are to be treated as matching any value.

    Returns
    Type Description
    int

    The value that has been set by the user.

    SettingsSlider(string, UserSetting<int>, int, int, string)

    A slider that implements search filtering and context menu reset.

    Declaration
    public static int SettingsSlider(string label, UserSetting<int> value, int min, int max, string searchContext)
    Parameters
    Type Name Description
    string label

    Label in front of the value field.

    UserSetting<int> value

    The value to edit.

    int min

    The value at the left end of the slider.

    int max

    The value at the right end of the slider.

    string searchContext

    A string representing the current search query. Empty or null strings are to be treated as matching any value.

    Returns
    Type Description
    int

    The value that has been set by the user.

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