# GetLayerName(int)

> Get a layer name for the specified layer ordinal (index).

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public static string GetLayerName(int layerOrdinal)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The layer ordinal (index). When using the full layers this should be within the range \[0, 63] however if not then the range must be \[0, 31].

### Returns

| Type                                                           | Description                                                         |
| -------------------------------------------------------------- | ------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The layer name. If no layer name is present then Empty is returned. |
