> For the complete documentation index, see [llms.txt](https://espergames.gitbook.io/animatables/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://espergames.gitbook.io/animatables/scripting-basics/add-or-remove-animations.md).

# Add or Remove Animations

## Animatable UI Objects

Adding and removing animations work the same way for each AnimatableUIObject.

### On Enable

#### Adding

```csharp
// 'animatable' is the AnimatableUIObject
// 'animation' is the UIAnimationData
animatable.AddOnEnableAnimation(animation)
```

#### Removing

```csharp
animatable.RemoveOnEnableAnimation(animation)
```

### On Disable

#### Adding

```csharp
animatable.AddOnDisableAnimation(animation)
```

#### Removing

```csharp
animatable.RemoveOnDisableAnimation(animation)
```

### Custom Call

#### Adding

```csharp
animatable.AddCustomAnimation(animation)
```

#### Removing

```csharp
animatable.RemoveCustomAnimation(animation)
```

## Animatable Transform

#### Adding

```csharp
// 'animatable' is the AnimatableTransform
// 'animation' is the TransformAnimationData
animatable.AddAnimation(animation);
```

#### Removing

```csharp
animatable.RemoveAnimation(animation);
```
