C# Class UnityEditor.MenuItem

Inheritance: System.Attribute
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
menuItem string
priority int
validate bool

Public Methods

Method Description
MenuItem ( string itemName ) : System

Creates a menu item and invokes the static function following it, when the menu item is selected.

MenuItem ( string itemName, bool isValidateFunction ) : System

Creates a menu item and invokes the static function following it, when the menu item is selected.

MenuItem ( string itemName, bool isValidateFunction, int priority ) : System

Creates a menu item and invokes the static function following it, when the menu item is selected.

Private Methods

Method Description
MenuItem ( string itemName, bool isValidateFunction, int priority, bool internalMenu ) : System

Method Details

MenuItem() public method

Creates a menu item and invokes the static function following it, when the menu item is selected.

public MenuItem ( string itemName ) : System
itemName string The itemName is the menu item represented like a pathname. /// For example the menu item could be "GameObject/Do Something".
return System

MenuItem() public method

Creates a menu item and invokes the static function following it, when the menu item is selected.

public MenuItem ( string itemName, bool isValidateFunction ) : System
itemName string The itemName is the menu item represented like a pathname. /// For example the menu item could be "GameObject/Do Something".
isValidateFunction bool If isValidateFunction is true, this is a validation /// function and will be called before invoking the menu function with the same itemName.
return System

MenuItem() public method

Creates a menu item and invokes the static function following it, when the menu item is selected.

public MenuItem ( string itemName, bool isValidateFunction, int priority ) : System
itemName string The itemName is the menu item represented like a pathname. /// For example the menu item could be "GameObject/Do Something".
isValidateFunction bool If isValidateFunction is true, this is a validation /// function and will be called before invoking the menu function with the same itemName.
priority int The order by which the menu items are displayed.
return System

Property Details

menuItem public_oe property

public string menuItem
return string

priority public_oe property

public int priority
return int

validate public_oe property

public bool validate
return bool