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.

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.