# GetNextAnimatorClipInfoCount(int)

> Returns the number of AnimatorClipInfo in the next state.

## Definition

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

```csharp
public int GetNextAnimatorClipInfoCount(int layerIndex)
```

### Parameters

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

### Returns

| Type                                                       | Description                                                                                                          |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of [AnimatorClipInfo](/engine/6000.0/script-reference/unityengine/animatorclipinfo.md) in the next state. |
