EventType.ExecuteCommand

Switch to Manual

Description

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

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