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 |