Light.cullingMask Manual     Reference     Scripting  
Scripting > Runtime Classes > Light
Light.cullingMask

var cullingMask : int

Description

This is used to lights parts of the scene selectively.

If the GameObject's layerMask AND the light's cullingMask is zero then the object will not be lit by this light. See Layers for more information.

// Only light objects in the first layer (Default layer)
light.cullingMask = 1 << 0;

See Also: Light component