Content-Length: 18878 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Event-commandName.html
The name of an ExecuteCommand or ValidateCommand Event.
Available commands are:
"Copy", "Cut", "Paste",
"Delete", "SoftDelete", "Duplicate",
"FrameSelected", "FrameSelectedWithLock",
"SelectAll", "Find" and "FocusProjectWindow".
Sent only in the editor.
Additional resources: 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); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Event-commandName.html
Alternative Proxies: