# GetCreateAssetObjectEvent(int, out CreateAssetObjectEventArgs)

> Retrieves the event data at the given index as a CreateAssetObjectEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.

## Definition

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

## GetCreateAssetObjectEvent(int, CreateAssetObjectEventArgs)

```csharp
public void GetCreateAssetObjectEvent(int eventIdx, out CreateAssetObjectEventArgs data)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the event to get the data for.**** (\[CreateAssetObjectEventArgs]\(/engine/6000.0/script-reference/unityeditor/createassetobjecteventargs)): The data associated with the event.
