C# Class UnityEditor.MenuItem

Inheritance: System.Attribute
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Свойство Type Description
menuItem string
priority int
validate bool

Méthodes publiques

Méthode 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

Méthode Description
MenuItem ( string itemName, bool isValidateFunction, int priority, bool internalMenu ) : System

Method Details

MenuItem() public méthode

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".
Résultat System

MenuItem() public méthode

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.
Résultat System

MenuItem() public méthode

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.
Résultat System

Property Details

menuItem public_oe property

public string menuItem
Résultat string

priority public_oe property

public int priority
Résultat int

validate public_oe property

public bool validate
Résultat bool