기술 자료

Unity Engine

Unity Engine

clickCount

How many consecutive mouse clicks have we received.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public int clickCount { get; set; }

Remarks

Used in EventType.MouseDown event; use this to differentiate between a single and double clicks.

Examples

using UnityEngine;public class Example : MonoBehaviour{ void OnGUI() { Event e = Event.current; if (e.isMouse) { Debug.Log("Mouse clicks: " + e.clickCount); } }}