# AddEvent(AnimationEvent)

> Adds an animation event to the clip.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public void AddEvent(AnimationEvent evt)
```

### Parameters

**** (\[AnimationEvent]\(/engine/6000.0/script-reference/unityengine/animationevent)): AnimationEvent to add.

### Remarks

Note that events added with AddEvent persist until play mode is exited or the is player quit. If you want to add an event to a clip persistently, use [AnimationUtility.SetAnimationEvents](/engine/6000.0/script-reference/unityeditor/animationutility/setanimationevents.md) from the Unity editor.

Additional Resources: [AnimationEvent](/engine/6000.0/script-reference/unityengine/animationevent.md), [AnimationUtility](/engine/6000.0/script-reference/unityeditor/animationutility.md) classes.
