Immediate mode not working in Unity 6000.0

Avatar
  • updated

Immediate mode is not working in my Unity 6 project. I have used shapes a ton in the past in 2023.3 and love/understand the asset, so I am confused as to why it wont work in Unity 6. Normal shapes are working fine, its just drawing any in immediate mode that is not working. Further notes I am using entities graphics and Forward+ rendering

*Update
Disabling rendergraph allows it to work, but can I add a new pass data somewhere so I dont have to disable it?

Image 848

Reporting a bug? please specify Unity version:
6000.0.13f1
Reporting a bug? please specify Shapes version:
4.3.1
Reporting a bug? please specify Render Pipeline:
URP
Avatar
John Vanderbeck

Ok so interestingly I managed to get Lines to draw but not Polylines.

Avatar
John Vanderbeck

I'm in the same boat.  However to add some context here, Immediate Mode DOES work, just not in this way.  If you use it in OnDrawGizmos it works fine.  So I think, and I'm only guessing here, the problem isn't with the drawing but rather the render hooks.

Unity 6 also introduces RenderGraph, but even with it disabled (legacy mode) still nothing in DrawShapes for me.  Did you do something more than just legacy mode?