UnityEngine.ContextMenu.ContextMenu C# (CSharp) Method

ContextMenu() public method

Adds the function to the context menu of the component.

public ContextMenu ( string itemName, bool isValidateFunction, int priority ) : System
itemName string The name of the context menu item.
isValidateFunction bool Whether this is a validate function (defaults to false).
priority int Priority used to override the ordering of the menu items (defaults to 1000000). The lower the number the earlier in the menu it will appear.
return System
        public ContextMenu(string itemName, bool isValidateFunction, int priority)
        {
            this.menuItem = itemName;
            this.validate = isValidateFunction;
            this.priority = priority;
        }
    }

Same methods

ContextMenu::ContextMenu ( string itemName ) : System
ContextMenu::ContextMenu ( string itemName, bool isValidateFunction ) : System
ContextMenu