Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


layerMask

The LayerMask that selectively ignores Colliders when casting a sphere.
Read time 1 minuteLast updated 5 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; }