Version: 2017.1

EventType.ExecuteCommand

Cambiar al Manual

Descripción

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" ); }