docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawEnumPopup

    DrawEnumPopup<TEnum>(Rect, GUIContent, SerializedProperty)

    Draws an EnumPopup(Rect, Enum) for the given property

    Declaration
    public static void DrawEnumPopup<TEnum>(Rect rect, GUIContent label, SerializedProperty serializedProperty) where TEnum : Enum
    Parameters
    Type Name Description
    Rect rect

    The rect where the drop down will be drawn

    GUIContent label

    The label for the drop down

    SerializedProperty serializedProperty

    The SerializedProperty to modify

    Type Parameters
    Name Description
    TEnum

    DrawEnumPopup(SerializedProperty, Type, GUIContent)

    Draw an EnumPopup handling multiEdition

    Declaration
    public static void DrawEnumPopup(SerializedProperty property, Type type, GUIContent label = null)
    Parameters
    Type Name Description
    SerializedProperty property

    The data displayed

    Type type

    Type of the property

    GUIContent label

    The label

    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)