layers
The layers of entities that cast shadows from this light.
Declaration
var layers: RenderLayer.Set? { get set }Discussion
An entity casts a shadow into this light’s shadow map when the layers of its RenderLayerComponent intersect with this set.
Set this property to:
nil(the default) to inherit layers, so any entity the light illuminates can also cast a shadow from it.An empty set to disable shadow casting from this light entirely.
Shadow casting can be restricted by layer on devices with Apple6 GPU family feature support.