Version: 2023.2
public int layerMask ;

描述

Unity renders objects whose GameObject.layer value is enabled in this bit mask.

Additional resources: ScriptableRenderContext.DrawRenderers, GameObject.layer, Creating a simple render loop in a custom render pipeline.