# clickCount

> How many consecutive mouse clicks have we received.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
public int clickCount { get; set; }
```

### Remarks

Used in [EventType.MouseDown](/engine/6000.5/script-reference/unityengine/eventtype/mousedown.md) event; use this to differentiate between a single and double clicks.

### Examples

```csharp
using UnityEngine;

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