ReorderableListControlDoCommand Method (GUIContent, Int32, IReorderableListAdaptor) |
Call to manually perform command.
Namespace: Rotorz.ReorderableListAssembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntaxpublic bool DoCommand(
GUIContent command,
int itemIndex,
IReorderableListAdaptor adaptor
)
public function DoCommand(
command : GUIContent,
itemIndex : int,
adaptor : IReorderableListAdaptor
) : boolean
Parameters
- command
- Type: GUIContent
Content representing command. - itemIndex
- Type: SystemInt32
Zero-based index of item which was right-clicked. - adaptor
- Type: Rotorz.ReorderableListIReorderableListAdaptor
Reorderable list adaptor.
Return Value
Type:
Boolean
A value of
true if command was known; otherwise
false.
RemarksWarning message is logged to console if attempted to execute unknown command.
See Also