CustomContextMenuAttributeDrawer

Adds a generic menu option to properties marked with CustomContextMenuAttribute.

namespace Sirenix.OdinInspector.Editor.Drawers
{
[Sirenix.OdinInspector.Editor.OdinDrawerAttribute]
[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: 1.0.6.1

See Also

Methods

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