PhysicRaylayerMaskOn this pagePhysicRay.layerMask NameTypelayerMasknumber Description A Layer mask that is used to selectively ignore colliders when casting a ray. Default Physics.DefaultRaycastLayers.