Version: 2023.1
public int layerMask ;

描述

A value that indicates which layers are accepted by this testing configuration.

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.