Documentation

Unity Engine

Unity Engine

layerMask

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

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public int layerMask