# RenderingLayerToName(int)

> Given a rendering layer index, returns the name of the layer as defined in the Tags and Layers manager.

## Definition

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

```csharp
public static string RenderingLayerToName(int layer)
```

### Parameters

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

### Returns

| Type                                                           | Description                        |
| -------------------------------------------------------------- | ---------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Returns empty string if not found. |

### Examples

```csharp
using UnityEngine;
using UnityEngine.Rendering;

public class Example : MonoBehaviour
{
    void Start()
    {
        // Prints the name of the rendering layer 1

        Debug.Log(RenderingLayerMask.RenderingLayerToName(1));
    }
}
```
