# type

> The type of event.

## Definition

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

```csharp
public EventType type { get; set; }
```

### Remarks

Additional Resources: [EventType](/engine/6000.7/script-reference/unityengine/eventtype.md), [GUI Scripting Guide](/engine/6000.7/manual/uitoolkits/ui-imgui/guiscripting-guide.md)

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Prints the current event detected.
    void OnGUI()
    {
        Debug.Log("Current event detected: " + Event.current.type);
    }
}
```
