UnityEngine.ContextMenuItemAttribute.ContextMenuItemAttribute C# (CSharp) Method

ContextMenuItemAttribute() public method

Use this attribute to add a context menu to a field that calls a named method.

public ContextMenuItemAttribute ( string name, string function ) : System
name string The name of the context menu item.
function string The name of the function that should be called.
return System
        public ContextMenuItemAttribute(string name, string function)
        {
            this.name = name;
            this.function = function;
        }
    }
ContextMenuItemAttribute