# GetAnimatorTransitionInfo(int)

> Returns an AnimatorTransitionInfo with the informations on the current transition.

## Definition

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

```csharp
public AnimatorTransitionInfo GetAnimatorTransitionInfo(int layerIndex)
```

### Parameters

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

### Returns

| Type                                                                                            | Description                                                                                                                                         |
| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AnimatorTransitionInfo](/engine/6000.6/script-reference/unityengine/animatortransitioninfo.md) | An [AnimatorTransitionInfo](/engine/6000.6/script-reference/unityengine/animatortransitioninfo.md) with the informations on the current transition. |
