# Sandbox.Animation.Clip.GetEvents

## Overload 1

```csharp
IEnumerable<ClipEvent<AnimationEvent>> GetEvents()
```

Read all game-defined events and their authored timing, without playing the clip.
Events are returned in start-time order, with a fresh payload for each enumeration.
Native engine events are not included.

### Returns

`IEnumerable<ClipEvent<AnimationEvent>>`

## Overload 2

```csharp
IEnumerable<ClipEvent<T>> GetEvents()
```

Read game-defined events assignable to `T` and their authored timing,
without playing the clip. Events are returned in start-time order, with a fresh payload
for each enumeration. Times are in seconds at the clip's original playback speed.

### Returns

`IEnumerable<ClipEvent<T>>`

### Exceptions

- `System.InvalidOperationException`: An authored event type is unavailable or its payload is missing.
- `System.Text.Json.JsonException`: An authored event payload contains invalid JSON.

Declared in [Sandbox.Animation.Clip](/api/Sandbox.Animation.Clip).
Assembly: `Sandbox.Engine`.
