# OnPlayableDestroy(Playable)

> This function is called when the Playable that owns the PlayableBehaviour is destroyed.

## Definition

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

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

### Parameters

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

### Remarks

The playable can be destroyed with [PlayableExtensions.Destroy](/engine/6000.7/script-reference/unityengine/playables/playableextensions/destroy.md).
