# GetLastDefinedRenderingLayerIndex()

> Returns an index of the last defined Rendering Layer in the Tags and Layers manager.

## Definition

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

```csharp
public static int GetLastDefinedRenderingLayerIndex()
```

### Returns

| Type                                                       | Description                                |
| ---------------------------------------------------------- | ------------------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Index of the last defined Rendering Layer. |
