# GetLayerWeight(int)

> Returns the weight of the layer at the specified index.

## Definition

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

```csharp
public float GetLayerWeight(int layerIndex)
```

### Parameters

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

### Returns

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