DefaultRaycastLayers
Layer mask constant that includes all layers participating in raycasts by default.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public const int DefaultRaycastLayers = -5
Remarks
The value of the mask is the bitwise complement of the Physics2D.IgnoreRaycastLayer mask.