isKey
Is this event a keyboard event? (Read Only)
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.UICommonModule
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!"); } }}