docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MinMaxShaderProperty

    MinMaxShaderProperty(MaterialEditor, MaterialProperty, MaterialProperty, float, float, GUIContent)

    Draw a special slider to specify a range between a min and a max for two float shader properties.

    Declaration
    public static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProperty min, MaterialProperty max, float minLimit, float maxLimit, GUIContent label)
    Parameters
    Type Name Description
    MaterialEditor editor

    MaterialEditor

    MaterialProperty min

    The MaterialProperty containing the lower value of the range the slider shows

    MaterialProperty max

    The MaterialProperty containing the upper value of the range the slider shows

    float minLimit

    The limit at the left end of the slider

    float maxLimit

    The limit at the right end of the slider

    GUIContent label

    Label for the property

    MinMaxShaderProperty(MaterialEditor, MaterialProperty, float, float, GUIContent)

    Draw a special slider to specify a range between a min and a max for a vector shader property.

    Declaration
    public static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProperty remapProp, float minLimit, float maxLimit, GUIContent label)
    Parameters
    Type Name Description
    MaterialEditor editor

    MaterialEditor

    MaterialProperty remapProp

    The MaterialProperty containing the range the slider shows in the x and y components of its vectorValue

    float minLimit

    The limit at the left end of the slider

    float maxLimit

    The limit at the right end of the slider

    GUIContent label

    Label for the property

    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)