# GetNextAnimationClipState(int)

> Gets the list of AnimatorClipInfo currently played by the next state.

## Definition

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

> **Warning:**
>
> **Removed.** GetNextAnimationClipState is obsolete. Use GetNextAnimatorClipInfo instead
>
> **Upgrade to** [Animator.GetNextAnimatorClipInfo](/engine/6000.0/script-reference/unityengine/animator/getnextanimatorclipinfo.md)

```csharp
public AnimationInfo[] GetNextAnimationClipState(int layerIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The layer's index.

### Returns

| Type                                                                              | Description |
| --------------------------------------------------------------------------------- | ----------- |
| [AnimationInfo\[\]](/engine/6000.0/script-reference/unityengine/animationinfo.md) |             |

### Remarks

Only valid during a transition. Additional Resources: [AnimatorClipInfo](/engine/6000.0/script-reference/unityengine/animatorclipinfo.md).
