docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IntShaderProperty

    IntShaderProperty(MaterialEditor, MaterialProperty, GUIContent, Func<int, int>)

    Draw an integer property field for a float shader property.

    Declaration
    public static void IntShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label, Func<int, int> transform = null)
    Parameters
    Type Name Description
    MaterialEditor editor

    MaterialEditor

    MaterialProperty prop

    The MaterialProperty to make a field for

    GUIContent label

    Label for the property

    Func<int, int> transform

    Optional function to apply on the new value

    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)