Class OptionalEnumPropertyDrawer<T>
Draws the Inspector GUI for an optional enum property
Inherited Members
Namespace: Unity.AppUI.Editor
Assembly: Unity.AppUI.Editor.dll
Syntax
public class OptionalEnumPropertyDrawer<T> : PropertyDrawer where T : struct, Enum
Type Parameters
Name | Description |
---|---|
T | The type of the optional property |
Methods
CreatePropertyGUI(SerializedProperty)
Creates custom GUI with UI Toolkit for the property.
Declaration
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property | The SerializedProperty to make the custom GUI for. |
Returns
Type | Description |
---|---|
VisualElement | The element containing the custom GUI. |