Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseThis is used to light certain objects in the scene selectively.
A GameObject will only be illuminated by a light if that light's cullingMask/
includes the layer chosen for the GameObject (ie, the mask bit for the layer must be set to 1
for the object to receive any light).
See Layers for more information about layer masking.
See Also: Light component.