# ignoreLayers

> Which object layers are ignored by the projector.

## Definition

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

> **Warning:**
>
> **Deprecated.** Projector component is deprecated now that the Built-In Render Pipeline is deprecated. To use an alternative, refer to the documentation in the component help icon. #from(6000.5)

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

### Remarks

See [layer mask](/engine/6000.6/manual/working-with-gameobjects/layers.md).

By default this is zero - i.e. no layers are ignored. Each set bit in `ignoreLayers` will make this layer not affected by the projector.

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Projector proj = GetComponent<Projector>();
        // Make the projector ignore Default (0) layer
        proj.ignoreLayers = (1 << 0);
    }
}
```

Additional Resources: [projector component](/engine/6000.6/manual/visual-effects/decals/decals-birp/class-projector.md), [Layers](/engine/6000.6/manual/working-with-gameobjects/layers.md).
