Rendering Layers?

I’m curious how to move my LayerMask to the new RenderLayer system but I can’t find the suitable replacement for LayerMask anywhere. Even if I poke around in Unity scripts that seems to use it, like the URPDecalProjector. I’m on wizard, so maybe I’ve missed it but it doesn’t seem as obvious as LayerMask, that’s for sure. I found the LightLayerEnum, but can’t find the same thing for Rendering Layers.

Context, I have a Outline Render Feature that uses LayerMask to apply the outline to objects, which works fine but I want to try using the Rendering Layer Mask within the Mesh Renderer.

Any suggestions? Cheers.

9455975--1327964--upload_2023-11-7_9-49-28.png

nvm it’s not exposed and not a priority as of march 2023, not sure when or if it’ll change.

1 Like

We added APIs and editor tooling around RenderingLayers in the latest 2023.3.0 alpha versions. You can find some insights in this post in the RenderGraph thread: Introduction of Render Graph in the Universal Render Pipeline (URP) page-3#post-9535966

Hope this is helpful for you.

1 Like