This version of Unity is unsupported.

Renderer.renderingLayerMask

public uint renderingLayerMask;

Description

Determines which rendering layer this renderer lives on.

When using a scriptable render pipeline, you can specify an additional rendering-specific layer mask. This filters the renderers based on the mask the renderer has and the mask passed to the DrawRenderers command.