Version 2.1.0.0

IDefinesGenericMenuItems interface

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public interface IDefinesGenericMenuItems
An OdinDrawer can implement this interface to indicate that it defines right-click context menu items for properties that it draws.

Methods

PopulateGenericMenu(InspectorProperty, GenericMenu)
Method that is invoked when a user has right-clicked a property, and the context menu is being built. The method is invoked in order of drawer priority.
void PopulateGenericMenu(InspectorProperty property, GenericMenu genericMenu)
Parameters
InspectorProperty property

The property that has been right-clicked on.

UnityEditor.GenericMenu genericMenu

The generic menu instance that is being built. Add items to this.