AllLayers
Layer mask constant that includes all layers.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public const int AllLayers = -1
Remarks
Additional Resources: Physics2D.DefaultRaycastLayers, Physics2D.IgnoreRaycastLayer.