Version 2.1.0.0

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

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

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.