GenericMenu.AddItem Manual     Reference     Scripting  
Scripting > Editor Classes > GenericMenu
GenericMenu.AddItem

function AddItem (content : GUIContent, on : boolean, func : MenuFunction) : void

Description

Add an item to the menu

See Also: GenericMenu.AddDisabledItem, GenericMenu.AddSeparator

function AddItem (content : GUIContent, on : boolean, func : MenuFunction2, userData : object) : void

Description

Add an item to the menu

See Also: GenericMenu.AddDisabledItem, GenericMenu.AddSeparator