docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IntPopupShaderProperty

    IntPopupShaderProperty(MaterialEditor, MaterialProperty, string, string[], int[])

    Draw an integer popup selection field for a float shader property.

    Declaration
    public static int IntPopupShaderProperty(this MaterialEditor editor, MaterialProperty prop, string label, string[] displayedOptions, int[] optionValues)
    Parameters
    Type Name Description
    MaterialEditor editor

    MaterialEditor

    MaterialProperty prop

    The MaterialProperty to make a field for

    string label

    Label for the property

    string[] displayedOptions

    An array with the options shown in the popup

    int[] optionValues

    An array with the values for each option

    Returns
    Type Description
    int

    The value of the option that has been selected by the user

    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)