# stopped

> Event that is raised when a PlayableDirector component has stopped.

## Definition

* **Type:** Event
* **Namespace:** [UnityEngine.Playables](/engine/6000.0/script-reference/unityengine/playables.md)
* **Assembly:** UnityEngine.DirectorModule

```csharp
public event Action<PlayableDirector> stopped
```

### Remarks

Add an event handler, to this event, to receive a notification when a PlayableDirector is stopped. The event handler also receives the PlayableDirector that is stopped.

When using [PlayableBehaviour](/engine/6000.0/script-reference/unityengine/playables/playablebehaviour.md), this event is raised before [PlayableBehaviour.OnBehaviourPause](/engine/6000.0/script-reference/unityengine/playables/playablebehaviour/onbehaviourpause.md) and [PlayableBehaviour.OnGraphStop](/engine/6000.0/script-reference/unityengine/playables/playablebehaviour/ongraphstop.md).

```csharp
using UnityEngine;
using UnityEngine.Playables;

public class PlayableDirectorCallbackExample : MonoBehaviour
{
    public PlayableDirector director;

    void OnEnable()
    {
        director.stopped += OnPlayableDirectorStopped;
    }

    void OnPlayableDirectorStopped(PlayableDirector aDirector)
    {
        if (director == aDirector)
            Debug.Log("PlayableDirector named " + aDirector.name + " is now stopped.");
    }

    void OnDisable()
    {
        director.stopped -= OnPlayableDirectorStopped;
    }
}
```

Additional Resources: [PlayableDirector.played](/engine/6000.0/script-reference/unityengine/playables/playabledirector/played.md), [PlayableDirector.paused](/engine/6000.0/script-reference/unityengine/playables/playabledirector/paused.md).
