描述

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

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

using UnityEngine;

public class Example : MonoBehaviour { void OnGUI() { //implement frame selection Event e = Event.current; if (e.type == EventType.ExecuteCommand || e.type == EventType.ValidateCommand) { if (Event.current.commandName == "FrameSelected") Debug.Log("frame selected"); } } }