# GetCurrentAnimatorClipInfo

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

## Definition

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

## GetCurrentAnimatorClipInfo(int)

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

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

### Parameters

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

### Returns

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

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

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

```csharp
public void GetCurrentAnimatorClipInfo(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;
