# Sandbox.Component.IAnimationEvent.OnAnimationEvent

```csharp
void OnAnimationEvent(AnimationEvent data)
```

Called when the renderer fires a game-defined animation event.

### Parameters

- `data` (`AnimationEvent`): The event payload. Treat it as read-only; other handlers receive the same instance.

Declared in [Sandbox.Component.IAnimationEvent](/api/Sandbox.Component.IAnimationEvent).
Assembly: `Sandbox.Engine`.
