C# Class UnityEditor.GenericMenu

Datei anzeigen Open project: randomize/VimConfig Class Usage Examples

Public Methods

Method Description
AddDisabledItem ( GUIContent content ) : void
AddItem ( GUIContent content, bool on, MenuFunction func ) : void
AddItem ( GUIContent content, bool on, MenuFunction2 func, object userData ) : void
AddSeparator ( string path ) : void
DropDown ( Rect position ) : void
GetItemCount ( ) : int
ShowAsContext ( ) : void

Private Methods

Method Description
CatchMenu ( object userData, string options, int selected ) : void
Popup ( Rect position, int selectedIndex ) : void

Method Details

AddDisabledItem() public method

public AddDisabledItem ( GUIContent content ) : void
content UnityEngine.GUIContent
return void

AddItem() public method

public AddItem ( GUIContent content, bool on, MenuFunction func ) : void
content UnityEngine.GUIContent
on bool
func MenuFunction
return void

AddItem() public method

public AddItem ( GUIContent content, bool on, MenuFunction2 func, object userData ) : void
content UnityEngine.GUIContent
on bool
func MenuFunction2
userData object
return void

AddSeparator() public method

public AddSeparator ( string path ) : void
path string
return void

DropDown() public method

public DropDown ( Rect position ) : void
position UnityEngine.Rect
return void

GetItemCount() public method

public GetItemCount ( ) : int
return int

ShowAsContext() public method

public ShowAsContext ( ) : void
return void