Category: Unity development language

unity-monitor key 0

unity-monitor key

Hits: 0👂👂👂👂👂👂 Code: public KeyCode getKeyDownCode() { if (Input.anyKeyDown) { foreach (KeyCode keyCode in Enum.GetValues(typeof(KeyCode))) { if (Input.GetKeyDown(keyCode)) { Debug.Log(keyCode.ToString()); return keyCode; } } } return KeyCode.None; }