기술 자료

Unity Engine

Unity Engine

isMouse

Is this event a mouse event? (Read Only)
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UICommonModule
public bool isMouse { get; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Detects any mouse event void OnGUI() { Event e = Event.current; if (e.isMouse) { Debug.Log("Detected a mouse event!"); } }}