Version: 2021.3

GraphicsSettings.defaultRenderingLayerMask

切换到手册
public static uint defaultRenderingLayerMask ;

描述

Stores the default value for the RenderingLayerMask property of newly created Renderers.

This property allows you to define the default value for the RenderingLayerMask property of newly created Mesh Renderers and Terrain Renderers.