# Play(Animator, Playable, PlayableGraph)

> Plays the Playable on the given Animator. Note: This method is deprecated as it overrides the Time Update Mode of the Playable Graph. For an equivalent function, refer to the example below.

## Definition

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

> **Warning:**
>
> **Deprecated.** This function is no longer used as it overrides the Time Update Mode of the Playable Graph. Refer to the documentation for an example of an equivalent function.

```csharp
public static void Play(Animator animator, Playable playable, PlayableGraph graph)
```

### Parameters

**** (\[Animator]\(/engine/6000.7/script-reference/unityengine/animator)): Target Animator.**** (\[Playable]\(/engine/6000.7/script-reference/unityengine/playables/playable)): The Playable that will be played.**** (\[PlayableGraph]\(/engine/6000.7/script-reference/unityengine/playables/playablegraph)): The Graph that owns the Playable.

### Examples

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

public class Example
{
    void Play(Animator animator, Playable playable, PlayableGraph graph)
    {
        AnimationPlayableOutput playableOutput = AnimationPlayableOutput.Create(graph, "AnimationClip", animator);
        playableOutput.SetSourcePlayable(playable, 0);
        graph.SetTimeUpdateMode(DirectorUpdateMode.GameTime);
        graph.Play();
    }
}
```
