Immediate mode not working in Unity 6000.0

Avatar
  • updated
  • Fixed

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
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Fixed

This has been fixed for the coming update! also, polylines were broken for a separate reason, which has also been fixed

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?

Avatar
John Vanderbeck

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

Avatar
Freya Holmér creator
  • Answer
  • Fixed

This has been fixed for the coming update! also, polylines were broken for a separate reason, which has also been fixed

Avatar
John Vanderbeck
Quote from Freya Holmér

This has been fixed for the coming update! also, polylines were broken for a separate reason, which has also been fixed

Out of curiosity is this updated to work in Unity 6's new Render Graph or just fixed to work in Legacy Mode? Either is fine with me at this point, I'm just curious :)

Avatar
Freya Holmér creator
Quote from John Vanderbeck

Out of curiosity is this updated to work in Unity 6's new Render Graph or just fixed to work in Legacy Mode? Either is fine with me at this point, I'm just curious :)

it works in render graph now yeah :)

Avatar
Freyr Magnússon

I'm having the same issue.  ShapesRenderPass does not support the new RenderGraph API forcing the compatibility mode to be on. Would be lovely to have RenderGraph support as the compatabilty mode disables RenderGraph support.

Avatar
Freyr Magnússon
Quote from Freyr Magnússon

I'm having the same issue.  ShapesRenderPass does not support the new RenderGraph API forcing the compatibility mode to be on. Would be lovely to have RenderGraph support as the compatabilty mode disables RenderGraph support.

lol, I see your fixed the issue while I was looking at stale pages.  I'll be keeping my eyes peeled for that update then. Tanks.