# OnPreviewUpdate()

> Called every frame before rendering the Preview window. Use this method to update any class logic.

## Definition

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

```csharp
void OnPreviewUpdate()
```
