# PlayLayerMixer(Animator, int, out PlayableGraph)

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

## Definition

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

## PlayLayerMixer(Animator, int, PlayableGraph)

```csharp
public static AnimationLayerMixerPlayable PlayLayerMixer(Animator animator, int inputCount, out PlayableGraph graph)
```

### Parameters

**** (\[Animator]\(/engine/6000.7/script-reference/unityengine/animator)): Target Animator.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The input count for the [AnimationLayerMixerPlayable](/engine/6000.7/script-reference/unityengine/animations/animationlayermixerplayable.md). Defines the number of layers.**** (\[PlayableGraph]\(/engine/6000.7/script-reference/unityengine/playables/playablegraph)): The created [PlayableGraph](/engine/6000.7/script-reference/unityengine/playables/playablegraph.md).

### Returns

| Type                                                                                                                 | Description                                                                                                                                         |
| -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AnimationLayerMixerPlayable](/engine/6000.7/script-reference/unityengine/animations/animationlayermixerplayable.md) | A handle to the newly-created [AnimationLayerMixerPlayable](/engine/6000.7/script-reference/unityengine/animations/animationlayermixerplayable.md). |
