# SetAnimationEvents(AnimationClip, AnimationEvent[])

> Replaces all animation events in the animation clip.

## Definition

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

```csharp
public static void SetAnimationEvents(AnimationClip clip, AnimationEvent[] events)
```

### Parameters

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