Inheritance
ContextualMenu
Assembly: UnityEngine.dll
[Obsolete("ContextualMenu has been deprecated. Use DropdownMenu instead.", true)]
public class ContextualMenu
Methods
|
Improve this Doc
View Source
Declaration
public void AppendAction(string actionName, Action<ContextualMenu.MenuAction> action, Func<ContextualMenu.MenuAction, ContextualMenu.MenuAction.StatusFlags> actionStatusCallback, object userData = null)
Parameters
|
Improve this Doc
View Source
Declaration
public void AppendSeparator(string subMenuPath = null)
Parameters
Type |
Name |
Description |
String |
subMenuPath |
|
|
Improve this Doc
View Source
Declaration
public void InsertAction(int atIndex, string actionName, Action<ContextualMenu.MenuAction> action, Func<ContextualMenu.MenuAction, ContextualMenu.MenuAction.StatusFlags> actionStatusCallback, object userData = null)
Parameters
|
Improve this Doc
View Source
Declaration
public void InsertSeparator(string subMenuPath, int atIndex)
Parameters
|
Improve this Doc
View Source
Declaration
public List<ContextualMenu.MenuItem> MenuItems()
Returns
|
Improve this Doc
View Source
Declaration
public void PrepareForDisplay(EventBase e)
Parameters
|
Improve this Doc
View Source
Declaration
public void RemoveItemAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Extension Methods