GetLayerName(int)
Get a layer name for the specified layer ordinal (index).
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static string GetLayerName(int layerOrdinal)
Parameters
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 | The layer name. If no layer name is present then Empty is returned. |