# GetNextAnimatorClipInfo

> Returns an array of all the AnimatorClipInfo in the next state of the given layer.

## Definition

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

## GetNextAnimatorClipInfo(int)

Returns an array of all the [AnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) in the next state of the given layer.

```csharp
public AnimatorClipInfo[] GetNextAnimatorClipInfo(int layerIndex)
```

### Parameters

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

### Returns

| Type                                                                                    | Description                                                                                                                |
| --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [AnimatorClipInfo\[\]](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) | An array of all the [AnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) in the next state. |

## GetNextAnimatorClipInfo(int, List\<AnimatorClipInfo>)

Fills `clips` with the list of all the [AnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) in the next state of the given layer.

```csharp
public void GetNextAnimatorClipInfo(int layerIndex, List<AnimatorClipInfo> clips)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The layer index.**** (\[List\<AnimatorClipInfo>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The list of [AnimatorClipInfo](/engine/6000.7/script-reference/unityengine/animatorclipinfo.md) to fill.

### Remarks

Additional Resources: [Animator.GetNextAnimatorClipInfoCount](/engine/6000.7/script-reference/unityengine/animator/getnextanimatorclipinfocount.md)
