Version: 2020.3

FilteringSettings.renderingLayerMask

切换到手册
public uint renderingLayerMask ;

描述

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