SteamVR breaks rendering Gizmos
Erhannis opened this issue · 2 comments
Windows 10
Unity 2022.1.14f1
SteamVR Plugin 2.7.3 (sdk 1.14.15)
I've noticed that when I have a project with SteamVR in it, and the game is able to connect to the headset, then OnDrawGizmos is no longer called (and Debug.DrawLines no longer show up). It's still called from the Scene view, but not from the Game view. If I disconnect my headset so the game can't connect to it, then Gizmos and Debug lines show up fine.
Here's a video:
(I forgot to mention the OnDrawGizmos thing specifically in the video. Also, FYI, Gizmos / Debug lines are missing in normal VR scenes, too.)
To anyone in my shoes - I still haven't figured out the problem with Gizmos or Debug, BUT both Fast Line Renderer and IMDraw work IF you switch to multi pass rendering. (Stop running the game. Go to: Build Settings > Player Settings > XR Plug-in Management (in the left list) > OpenVR or OpenXR > Stereo Rendering Mode or w/e., set it to Multi Pass.) Maybe depends on system details.
Since other packages work, I believe this is a unity issue with single pass rendering. Closing for now.