# GetEventCount()

> Returns the current number of events that are stored in the event queue.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.UICommonModule

```csharp
public static int GetEventCount()
```

### Returns

| Type                                                       | Description                                            |
| ---------------------------------------------------------- | ------------------------------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Current number of events currently in the event queue. |
