docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IntSliderShaderProperty

    IntSliderShaderProperty(MaterialEditor, MaterialProperty, GUIContent)

    Draw an integer slider for a range shader property.

    Declaration
    public static void IntSliderShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label)
    Parameters
    Type Name Description
    MaterialEditor editor

    MaterialEditor

    MaterialProperty prop

    The MaterialProperty to make a field for

    GUIContent label

    Label for the property

    IntSliderShaderProperty(MaterialEditor, MaterialProperty, int, int, GUIContent)

    Draw an integer slider for a float shader property.

    Declaration
    public static void IntSliderShaderProperty(this MaterialEditor editor, MaterialProperty prop, int min, int max, GUIContent label)
    Parameters
    Type Name Description
    MaterialEditor editor

    MaterialEditor

    MaterialProperty prop

    The MaterialProperty to make a field for

    int min

    The value at the left end of the slider

    int max

    The value 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)