# PlayAnimatorController(Animator, RuntimeAnimatorController, out PlayableGraph)

> Creates a PlayableGraph to be played on the given Animator. An AnimatorControllerPlayable is also created for the given RuntimeAnimatorController.

## Definition

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

## PlayAnimatorController(Animator, RuntimeAnimatorController, PlayableGraph)

```csharp
public static AnimatorControllerPlayable PlayAnimatorController(Animator animator, RuntimeAnimatorController controller, out PlayableGraph graph)
```

### Parameters

**** (\[Animator]\(/engine/6000.3/script-reference/unityengine/animator)): Target Animator.**** (\[RuntimeAnimatorController]\(/engine/6000.3/script-reference/unityengine/runtimeanimatorcontroller)): The RuntimeAnimatorController to create an [AnimatorControllerPlayable](/engine/6000.3/script-reference/unityengine/animations/animatorcontrollerplayable.md) for.**** (\[PlayableGraph]\(/engine/6000.3/script-reference/unityengine/playables/playablegraph)): The created [PlayableGraph](/engine/6000.3/script-reference/unityengine/playables/playablegraph.md).

### Returns

| Type                                                                                                               | Description                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AnimatorControllerPlayable](/engine/6000.3/script-reference/unityengine/animations/animatorcontrollerplayable.md) | A handle to the newly-created [AnimatorControllerPlayable](/engine/6000.3/script-reference/unityengine/animations/animatorcontrollerplayable.md). |
