Reorderable List Control for Unity
- Namespaces
- Rotorz.ReorderableList
- ReorderableListControl
- defaultContextHandler
defaultContextHandler Field
Default functionality to handle context command.
protected static readonly MenuFunction2 defaultContextHandler
Examples
Can be used when adding custom items to the context menu:
C#
UnityScript
CopyC#
protected override void AddItemsToMenu(GenericMenu menu, int itemIndex, IReorderableListAdaptor adaptor) { var specialCommand = new GUIContent("Special Command"); menu.AddItem(specialCommand, false, defaultContextHandler, specialCommand); }
CopyUnityScript
function AddItemsToMenu(menu:GenericMenu, itemIndex:int, list:IReorderableListAdaptor) { var specialCommand = new GUIContent('Special Command'); menu.AddItem(specialCommand, false, defaultContextHandler, specialCommand); }