Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


layerMask

A value that indicates which layers are accepted by this testing configuration.
Read time 1 minuteLast updated 6 days ago

Definition

public int layerMask

Remarks

If a Renderer's layer is not matching the layer mask then the test fails.
If all layers are accepted, use -1 for this value.