# GetEventType(int)

> Returns the type of the event at the specified index.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public ObjectChangeKind GetEventType(int eventIdx)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the event whose type should be returned.

### Returns

| Type                                                                                | Description                                   |
| ----------------------------------------------------------------------------------- | --------------------------------------------- |
| [ObjectChangeKind](/engine/6000.5/script-reference/unityeditor/objectchangekind.md) | The type of the event at the specified index. |

### Remarks

Use this function to query the type of an event before using any of the other functions (e.g. GetChangeAssetObjectEvent) to retrieve the event data.
