# GetAnimationEvents(AnimationClip)

> Retrieves all animation events associated with an animation clip.

## Definition

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

```csharp
public static AnimationEvent[] GetAnimationEvents(AnimationClip clip)
```

### Parameters

**** (\[AnimationClip]\(/engine/6000.5/script-reference/unityengine/animationclip)):&#x20;

### Returns

| Type                                                                                | Description |
| ----------------------------------------------------------------------------------- | ----------- |
| [AnimationEvent\[\]](/engine/6000.5/script-reference/unityengine/animationevent.md) |             |
