C# Class UnityEngine.ContextMenu

Inheritance: Attribute, _Attribute
ファイルを表示 Open project: CarlosHBC/UnityDecompiled

Public Properties

Property Type Description
menuItem string
priority int
validate bool

Public Methods

Method Description
ContextMenu ( string itemName ) : System

Adds the function to the context menu of the component.

ContextMenu ( string itemName, bool isValidateFunction ) : System

Adds the function to the context menu of the component.

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

Adds the function to the context menu of the component.

Method Details

ContextMenu() public method

Adds the function to the context menu of the component.

public ContextMenu ( string itemName ) : System
itemName string The name of the context menu item.
return System

ContextMenu() public method

Adds the function to the context menu of the component.

public ContextMenu ( string itemName, bool isValidateFunction ) : System
itemName string The name of the context menu item.
isValidateFunction bool Whether this is a validate function (defaults to false).
return System

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

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