# IDToName(int)

> Returns the unique id of the layer. Will return "\<unknown layer\>" if an invalid id is given.

## Definition

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

```csharp
public static string IDToName(int id)
```

### Parameters

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

### Returns

| Type                                                           | Description                                                               |
| -------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The name of the layer with `id` or "\\\<unknown layer\\>" for invalid id. |
