Version 3.3.0.1

PropertyContextMenuDrawer<T> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
[DrawerPriority(95, 0, 0)]
public sealed class PropertyContextMenuDrawer<T> : OdinValueDrawer<T>
Opens a context menu for any given property on right click. The context menu is populated by all relevant drawers that implements Sirenix.OdinInspector.Editor.IDefinesGenericMenuItems.
Inheritance
See Also
  • Sirenix.OdinInspector.Editor.IDefinesGenericMenuItems

Type Parameters

T

Constructors

PropertyContextMenuDrawer()
public PropertyContextMenuDrawer()

Methods

CanDrawValueProperty(InspectorProperty)
protected override bool CanDrawValueProperty(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Boolean

DrawPropertyLayout(GUIContent)
Draws the property.
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

Initialize()
Initializes the drawer.
protected override void Initialize()
Extension Methods