layers
The layers this light illuminates.
Declaration
var layers: RenderLayer.Set { get set }Discussion
A spotlight illuminates an entity when the layers of the entity’s RenderLayerComponent intersect with this set. Entities without a RenderLayerComponent belong to defaultLayer, which is the only member of layers by default.
For an example of layer-based light linking, see layers.
Lights can be restricted by layer on devices with Apple6 GPU family feature support.