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 20 hours ago

Definition

Warning
Deprecated. Layer Mask is now a part of QueryParameters struct
public int layerMask { get; set; }