# cullingMask

> This is used to light certain objects in the Scene selectively.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int cullingMask { get; set; }
```

### Remarks

A [GameObject](/engine/6000.5/script-reference/unityengine/gameobject.md) 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](/engine/6000.5/manual/working-with-gameobjects/layers.md) for more information about layer masking. Additional Resources: [Light component](/engine/6000.5/manual/lighting-overview/lighting-birp/class-light.md).
