isKey
Is this event a keyboard event? (Read Only)
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public bool isKey { get; }
Examples
using UnityEngine;public class Example : MonoBehaviour{ // Detects any keyboard event void OnGUI() { Event e = Event.current; if (e.isKey) { Debug.Log("Detected a keyboard event!"); } }}