Version: 2022.1

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.