IgnoreRaycastLayer
Layer mask constant to select ignore raycast layer.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public const int IgnoreRaycastLayer = 4
Remarks
This can be used in the layermask field of Physics.Raycast and other methods to select the "ignore raycast" layer (which does not receive raycasts by default).
Additional Resources: Physics.AllLayers, Physics.DefaultRaycastLayers.