Execute a special command (eg. copy & paste).
"Copy", "Cut", "Paste", "Delete", "FrameSelected", "Duplicate", "SelectAll" and so on. Sent only in the editor. Example. Checking that that a frame has the focus:
//implement frame selection
if (eventType == EventType.ExecuteCommand || eventType == EventType.ValidateCommand) { if (Event.current.commandName == "FrameSelected") Debug.Log("frame selected" ); }
See Also: Event.commandName, EventType.ValidateCommand.
Did you find this page useful? Please give it a rating: