CustomContextMenuAttributeDrawer

Adds a generic menu option to properties marked with CustomContextMenuAttribute.

namespace Sirenix.OdinInspector.Editor.Drawers
{
[Sirenix.OdinInspector.Editor.DrawerPriorityAttribute((DrawerPriorityLevel)3)]
public sealed class CustomContextMenuAttributeDrawer : OdinAttributeDrawer<CustomContextMenuAttribute>, Sirenix.OdinInspector.Editor.IDefinesGenericMenuItems
}

Requirements

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

See Also

Methods

Return Type Definition Description
void DrawPropertyLayout(GUIContent) Draws the property.
void PopulateGenericMenu(InspectorProperty, GenericMenu) Populates the generic menu for the property.