docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawMultipleFields

    DrawMultipleFields(string, SerializedProperty[], GUIContent[])

    Draw a multiple field property

    Declaration
    public static void DrawMultipleFields(string label, SerializedProperty[] ppts, GUIContent[] labels)
    Parameters
    Type Name Description
    string label

    Label of the whole

    SerializedProperty[] ppts

    Properties

    GUIContent[] labels

    Sub-labels

    DrawMultipleFields(GUIContent, SerializedProperty[], GUIContent[])

    Draw a multiple field property

    Declaration
    public static void DrawMultipleFields(GUIContent label, SerializedProperty[] ppts, GUIContent[] labels)
    Parameters
    Type Name Description
    GUIContent label

    Label of the whole

    SerializedProperty[] ppts

    Properties

    GUIContent[] labels

    Sub-labels

    DrawMultipleFields<T>(GUIContent, GUIContent[], T[])

    Draw a multiple field property

    Declaration
    public static void DrawMultipleFields<T>(GUIContent label, GUIContent[] labels, T[] values) where T : struct
    Parameters
    Type Name Description
    GUIContent label

    Label of the whole

    GUIContent[] labels

    The labels mapping the values

    T[] values

    The values to be displayed

    Type Parameters
    Name Description
    T

    A valid struct

    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)