# GetLayerName(int)

> Returns the layer name.

## Definition

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

```csharp
public string GetLayerName(int layerIndex)
```

### Parameters

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

### Returns

| Type                                                           | Description     |
| -------------------------------------------------------------- | --------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The layer name. |
