# IAnimationPreviewable

> Use this interface to prevent a class from being removed in the Animation Clip Preview window. The class must inherit from MonoBehaviour.

## Definition

* **Type:** Interface
* **Namespace:** [UnityEngine.Animations](/engine/6000.6/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public interface IAnimationPreviewable
```

## Methods

| Method                                                                                                             | Description                                                                                        |
| ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
| [OnPreviewUpdate](/engine/6000.6/script-reference/unityengine/animations/ianimationpreviewable/onpreviewupdate.md) | Called every frame before rendering the Preview window. Use this method to update any class logic. |
