Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


layerMask

A LayerMask that is used to selectively filter which colliders are considered when casting a ray.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
Warning
Deprecated. Layer Mask is now a part of QueryParameters struct
public int layerMask { get; set; }