El nombre de un evento ExecuteCommand o ValidateCommand.
Los comandos disponibles son:
"Copy", "Cut", "Paste",
"Delete", "SoftDelete", "Duplicate",
"FrameSelected", "FrameSelectedWithLock",
"SelectAll", "Find" and "FocusProjectWindow".
Enviado solamente en el 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); } }