ExecuteCommand か ValidateCommand イベントの名前を返します
使用可能なコマンドは以下のとおりです。
"Copy", "Cut", "Paste",
"Delete", "SoftDelete", "Duplicate",
"FrameSelected", "FrameSelectedWithLock",
"SelectAll", "Find", "FocusProjectWindow"
Editor 内のみで送信されます。
See Also: EventType.ExecuteCommand, EventType.ValidateCommand.
using UnityEngine;
public class EventCmdNameExample : MonoBehaviour { // Detects commands executed and prints them. void OnGUI( ) { Event e = Event.current;
if( e.commandName != "" ) Debug.Log( "Command recognized: " + e.commandName ); } }