Version: 2017.1

EventType.ExecuteCommand

切换到手册

描述

执行特殊命令(例如复制和粘贴)。

"Copy"、"Cut"、"Paste"、"Delete"、"FrameSelected"、"Duplicate"、"SelectAll" 等。 仅在该 Editor 中发送。 示例。检查帧是否有焦点:

    //implement frame selection

if (eventType == EventType.ExecuteCommand || eventType == EventType.ValidateCommand) { if (Event.current.commandName == "FrameSelected") Debug.Log("frame selected" ); }