Immediate Mode Not Working in Latest Unity version

Avatar
  • updated
  • Unity's Fault

The immediate mode example in the docs doesn't work with the latest version of Unity. It was working for me prior to updating Unity.

Expected behaviour:

After creating a new, empty scene and then adding a game object with the Immediate Mode Example script attached to it, I should see three Volumetric3D lines appear on screen when the game runs.

Actual behaviour: 

Nothing appears on screen when the game runs, even though the IM Monitor registers a camera, material and a command buffer.

Image 547


Reporting a bug? please specify Unity version:
2021.2.7f1
Reporting a bug? please specify Shapes version:
4.1.1
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Unity's Fault

ah goodness, I hate these unity bugs >.> glad it worked out!

Avatar
Freya Holmér creator

what's the full code of the script you ran?

Avatar
marcus r

Gah, turns out this issue was due to the usual Unity Package Manager shenanigans.


I had foolishly thought that I could upgrade Shapes to 4.1.1 by just importing the latest release from Package Manager over the top of my existing Shapes folder. This doesn't work.


I had to delete the entire Shapes directory, then re-import the entire package. After doing this, immediate mode started working.

It's weird that all other Shapes functionality was working fine for me - only immediate mode was failing.

In any case - all good now - Package Management in Unity is just broken. Sorry you had to deal with this noise :/

Avatar
Freya Holmér creator
  • Answer
  • Unity's Fault

ah goodness, I hate these unity bugs >.> glad it worked out!