Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GenericMenu.AddItem

AddItem(content: GUIContent, on: bool, func: MenuFunction): void;

Description

Add an item to the menu.

AddItem(content: GUIContent, on: bool, func: MenuFunction2, userData: object): void;

Description

Add an item to the menu.