Version: 2022.2

FilteringSettings.renderingLayerMask

切换到手册
public uint renderingLayerMask ;

描述

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