I know how to set the Light Layers of a GameObject in script/code (aka: do the renderingLayerMask = layerIndex), I don’t want to have to use hard coded “magic indices”, so that my code is a lot more readable for any other coders who happen to need to go into that part of our code.
But is there a way to find a Light Layer’s index using the name for it? I know for standard/normal Layers you use:
LayerMask.NameToLayer(“layerName”), is there a function like that for specifically the Light Layers?