How do I present a desktop canvas for a VR experience without this warning?
I am building a VR experience (using OpenVR/SteamVR) that provides the standard HMD mirroring to the desktop window of my Unity build. I have no intention of presenting a canvas in the HMD, but by creating a canvas with Render Mode as Screen Space - Overlay
I am able to provide a GUI for desktop interactions and feedback for non-VR users.
Unfortunately, in Unity 2018.3, I see this warning that was not present in older (5.6) versions of Unity:
A Canvas named "DesktopGUI" with a render mode of ScreenSpaceOverlay is being used while VR is also enabled. This Canvas will continue to incur a rendering cost, but will not be visible while in VR. Is this intentional?
Have I configured this incorrectly, or can this warning be ignored to remove error log bloat? I tried using Screen Space - Camera
with variations on the HMD camera or other scene cameras to no avail.
This is an old thread but it's at the top of the google results for this issue- I haven't been able to find a solution, it looks like you can only suppress warnings if they have a warning code associated with them. Any chance anybody's found a way to make this warning stop popping up? I appreciate that the warning exists but I specifically don't want the contents of this canvas to show up in VR, it's for the desktop player in an asymmetrical game. It'd be lovely to stop it from popping up at the top of the debug log every time I run my game.