layerMask
A value that indicates which layers are accepted by this testing configuration.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
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.