Version: 2023.1

FilteringSettings.renderingLayerMask

切换到手册
public uint renderingLayerMask ;

描述

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