Graphics.DrawMesh and Render Layers (resolved)

Hi all, I’ve been slowly upgrading to Forward+ and have run into an issue with the move from the old culling Layer system and lighting.

I use Graphics.DrawMesh extensively, and one of the overloads is to specify a layer (which originally corresponded to a light’s culling masks). Unfortunately this no longer works, the layer overload is no longer applicable as lights no longer cull with that criteria.

The question is, how do I specify a ‘Rendering Layer’ when using Graphics.DrawMesh? Thanks.

Ah, of course five minutes later I discovered that DrawMesh is obsolete (although not deprecated?)

I’ve learned about Graphics.Rendermesh and Renderparameters, which does allow you to define the rendering layer. I’ll leave this up for anyone who might run into the same issue.