LayerΒΆ

Select a layer via dropdown interface:

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

    [Layer]
    public int layerIndex;
}
../../_images/Layer_Inspector.png