# Sandbox.ModelBuilder.AddAnimation

```csharp
AnimationBuilder AddAnimation(string name, float frameRate)
```

Adds an animation to this model and returns a builder to construct the animation.
Duplicate names are given a numeric suffix.
Animations without frames are omitted from the finished model.

### Parameters

- `name` (`string`): The name of the animation.
- `frameRate` (`float`): The frames per second of the animation.

### Returns

`AnimationBuilder`: A builder for the new animation.

Declared in [Sandbox.ModelBuilder](/api/Sandbox.ModelBuilder).
Assembly: `Sandbox.Engine`.
