# OnGraphStop(Playable)

> This function is called when the PlayableGraph that owns this PlayableBehaviour stops.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Playables](/engine/6000.3/script-reference/unityengine/playables.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public virtual void OnGraphStop(Playable playable)
```

### Parameters

**** (\[Playable]\(/engine/6000.3/script-reference/unityengine/playables/playable)): The [Playable](/engine/6000.3/script-reference/unityengine/playables/playable.md) that owns the current PlayableBehaviour.

### Remarks

OnGraphStop is called when Unity stops playing the owning graph, and is guaranteed to always and only be called if [PlayableBehaviour.OnGraphStart](/engine/6000.3/script-reference/unityengine/playables/playablebehaviour/ongraphstart.md) has been called. If the graph has been only been manually evaluated, OnGraphStop will be called prior to destroy.
