# AnimatorControllerPlayable

> An implementation of IPlayable that controls an animation RuntimeAnimatorController.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Animations](/engine/6000.7/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule
* **Implements:** [IPlayable](/engine/6000.7/script-reference/unityengine/playables/iplayable.md), [IEquatable\<AnimatorControllerPlayable>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct AnimatorControllerPlayable : IPlayable, IEquatable<AnimatorControllerPlayable>
```

## Remarks

NOTE: You can use [PlayableExtensions](/engine/6000.7/script-reference/unityengine/playables/playableextensions.md) methods with AnimatorControllerPlayable objects.

## Static Properties

| Property                                                                                          | Description                                    |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [Null](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/null.md) | Returns an invalid AnimatorControllerPlayable. |

## Methods

| Method                                                                                                                                                  | Description                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CrossFade](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/crossfade.md)                                             | Creates a crossfade from the current state to any other state using normalized times.                                                                       |
| [CrossFadeInFixedTime](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/crossfadeinfixedtime.md)                       | Creates a crossfade from the current state to any other state using times in seconds.                                                                       |
| [GetAnimatorTransitionInfo](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getanimatortransitioninfo.md)             | Returns an [AnimatorTransitionInfo](/engine/6000.7/script-reference/unityengine/animatortransitioninfo.md) with the informations on the current transition. |
| [GetBool](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getbool.md)                                                 | Returns the value of the given boolean parameter.                                                                                                           |
| [GetCurrentAnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getcurrentanimatorclipinfo.md)           | Returns an array of all the [AnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) in the current state of the given layer.    |
| [GetCurrentAnimatorClipInfoCount](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getcurrentanimatorclipinfocount.md) | Returns the number of [AnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) in the current state.                             |
| [GetCurrentAnimatorStateInfo](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getcurrentanimatorstateinfo.md)         | Returns an [AnimatorStateInfo](/engine/6000.7/script-reference/unityengine/animatorstateinfo.md) with the information on the current state.                 |
| [GetFloat](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getfloat.md)                                               | Returns the value of the given float parameter.                                                                                                             |
| [GetInteger](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getinteger.md)                                           | Returns the value of the given integer parameter.                                                                                                           |
| [GetLayerIndex](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getlayerindex.md)                                     | Returns the index of the layer with the given name.                                                                                                         |
| [GetLayerName](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getlayername.md)                                       | Returns the layer name.                                                                                                                                     |
| [GetLayerWeight](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getlayerweight.md)                                   | Returns the weight of the layer at the specified index.                                                                                                     |
| [GetNextAnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getnextanimatorclipinfo.md)                 | Returns an array of all the [AnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) in the next state of the given layer.       |
| [GetNextAnimatorClipInfoCount](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getnextanimatorclipinfocount.md)       | Returns the number of [AnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) in the next state.                                |
| [GetNextAnimatorStateInfo](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getnextanimatorstateinfo.md)               | Returns an [AnimatorStateInfo](/engine/6000.7/script-reference/unityengine/animatorstateinfo.md) with the information on the next state.                    |
| [GetParameter](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/getparameter.md)                                       | See [\_parameters](/engine/6000.7/script-reference/unityeditor/animations/animatorcontroller/parameters.md).                                                |
| [HasState](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/hasstate.md)                                               | Returns true if the state exists in this layer, false otherwise.                                                                                            |
| [IsInTransition](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/isintransition.md)                                   | Returns true if there is a transition on the given layer, false otherwise.                                                                                  |
| [IsParameterControlledByCurve](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/isparametercontrolledbycurve.md)       | Returns true if the parameter is controlled by a curve, false otherwise.                                                                                    |
| [Play](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/play.md)                                                       | Plays a state.                                                                                                                                              |
| [PlayInFixedTime](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/playinfixedtime.md)                                 | Plays a state.                                                                                                                                              |
| [ResetControllerState](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/resetcontrollerstate.md)                       | Resets the AnimatorController to its default state.                                                                                                         |
| [ResetTrigger](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/resettrigger.md)                                       | Resets the value of the given trigger parameter.                                                                                                            |
| [SetBool](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/setbool.md)                                                 | Sets the value of the given boolean parameter.                                                                                                              |
| [SetFloat](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/setfloat.md)                                               | Send float values to the AnimatorController to affect transitions.                                                                                          |
| [SetInteger](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/setinteger.md)                                           | Sets the value of the given integer parameter.                                                                                                              |
| [SetLayerWeight](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/setlayerweight.md)                                   | Sets the weight of the layer at the given index.                                                                                                            |
| [SetTrigger](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/settrigger.md)                                           | Sets the value of the given trigger parameter.                                                                                                              |

## Static Methods

| Method                                                                                                | Description                                                                                                                                                                                                                   |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Create](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable/create.md) | Creates an [AnimatorControllerPlayable](/engine/6000.7/script-reference/unityengine/animations/animatorcontrollerplayable.md) in the [PlayableGraph](/engine/6000.7/script-reference/unityengine/playables/playablegraph.md). |
