SortingLayerΒΆ

Select a sorting layer via dropdown interface:

public class NaughtyComponent : MonoBehaviour
{
    [SortingLayer]
    public string layerName;

    [SortingLayer]
    public int layerId;
}
../../_images/SortingLayer_Inspector.png