Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


cullingMask

This is used to light certain objects in the Scene selectively.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int cullingMask { get; set; }

Remarks

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. Additional Resources: Light component.