docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreatePropertyFields

    CreatePropertyFields(SerializedObject, VisualElement)

    Creates a list of PropertyFields from the class fields of the given SerializedObject and adds them to the specified container element

    Declaration
    public static void CreatePropertyFields(SerializedObject serializedObj, VisualElement containerElement)
    Parameters
    Type Name Description
    SerializedObject serializedObj

    The SerializedObject to create property fields for

    VisualElement containerElement

    The element to place the created PropertyFields in

    CreatePropertyFields(SerializedProperty, VisualElement)

    Creates a list of PropertyFields from the sub-fields of the given SerializedProperty and adds them to the specified container element

    Declaration
    public static void CreatePropertyFields(SerializedProperty property, VisualElement containerElement)
    Parameters
    Type Name Description
    SerializedProperty property

    The SerializedProperty to create sub property fields for

    VisualElement containerElement

    The element to place the created PropertyFields in

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)