Custom Context Menu Attribute

CustomContextMenu is used on any property, and adds a custom options to the context menu for the property. Use this for when you want to add custom actions to the context menu of a property.

[InfoBox("A custom context menu is added on this property. Right click the property to view the custom context menu.")] [CustomContextMenu("Say Hello/Twice", "SayHello")] public int MyProperty; private void SayHello() { Debug.Log("Hello Twice"); }