Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IgnoreRaycastLayer

Layer mask constant for the default layer that ignores raycasts.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public const int IgnoreRaycastLayer = 4

Remarks

The value of the mask is the bitwise complement of the Physics2D.DefaultRaycastLayers mask.