# IgnoreRaycastLayer

> Layer mask constant for the default layer that ignores raycasts.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public const int IgnoreRaycastLayer = 4
```

### Remarks

The value of the mask is the bitwise complement of the [Physics2D.DefaultRaycastLayers](/engine/6000.0/script-reference/unityengine/physics2d/defaultraycastlayers.md) mask.

Additional Resources: [Physics2D.Raycast](/engine/6000.0/script-reference/unityengine/physics2d/raycast.md), [Physics2D.DefaultRaycastLayers](/engine/6000.0/script-reference/unityengine/physics2d/defaultraycastlayers.md), [Physics2D.AllLayers](/engine/6000.0/script-reference/unityengine/physics2d/alllayers.md).
