# UpdatePreviewGraph(PlayableGraph)

> Notification callback when the Animation Window updates its PlayableGraph before sampling an AnimationClip.

## Definition

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

```csharp
void UpdatePreviewGraph(PlayableGraph graph)
```

### Parameters

**** (\[PlayableGraph]\(/engine/6000.5/script-reference/unityengine/playables/playablegraph)): The Animation window [PlayableGraph](/engine/6000.5/script-reference/unityengine/playables/playablegraph.md).

### Remarks

The Animation window calls this function before sampling an [AnimationClip](/engine/6000.5/script-reference/unityengine/animationclip.md). **Note:** This does not support legacy Animation clips.
