Click or drag to resize
ReorderableListControlDefaultContextHandler Field
Default functionality to handle context command.

Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
protected static readonly MenuFunction2 DefaultContextHandler

Field Value

Type: MenuFunction2
Examples

Can be used when adding custom items to the context menu:

protected override void AddItemsToMenu(GenericMenu menu, int itemIndex, IReorderableListAdaptor adaptor) {
    var specialCommand = new GUIContent("Special Command");
    menu.AddItem(specialCommand, false, defaultContextHandler, specialCommand);
}
See Also