# GetNextAnimatorClipInfo

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

## Definition

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

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

Returns an array of all the [AnimatorClipInfo](/engine/6000.3/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)):&#x20;

## GetNextAnimatorClipInfo(int)

Returns an array of all the [AnimatorClipInfo](/engine/6000.3/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.3/script-reference/unityengine/animatorclipinfo.md) | An array of all the [AnimatorClipInfo](/engine/6000.3/script-reference/unityengine/animatorclipinfo.md) in the next state. |
