Version: 2023.2

FilteringSettings.renderingLayerMask

切换到手册
public uint renderingLayerMask ;

描述

Unity renders objects whose Renderer.renderingLayerMask value is enabled in this bit mask.

Additional resources: ScriptableRenderContext.DrawRenderers, Renderer.renderingLayerMask, Creating a simple render loop in a custom render pipeline.