SteamVR Developer Hardware

SteamVR Developer Hardware

Bleu Sep 15, 2020 @ 7:09am
Stop Steam VR from Starting When Running Unity Build?
I want to make my game so that you launch VR mode when you click on a button, not when the game starts up. I'm using the Steam VR SDK in unity 2020.1 and I've implemented a button that does just that.
I've turned off "Initialize XR on Startup" in the XR Plug in Management Settings and I've also turned off "Auto Enable VR" in the Steam VR_Settings scriptable object. Despite all of this, Steam VR still launches when I run a dev build and if I shut down Steam VR it quits the dev build. It doesn't run the game in the headset until I press the button that should turn it on. Is there something more I have to do to keep Steam VR from auto launching and forcibly shutting down my build when I turn it off?
< >
Showing 1-2 of 2 comments
Syriusz Sep 26, 2020 @ 9:28am 
I want to know it too! I want to make VR ready and not VR exclusive game, so I need not only to test it in desktop mode but also it would be faster to develop if I would not need to wear headset just to check something...
jashan Oct 11, 2020 @ 4:46am 
Originally posted by Syriusz:
I want to know it too! I want to make VR ready and not VR exclusive game, so I need not only to test it in desktop mode but also it would be faster to develop if I would not need to wear headset just to check something...

For that use case, at least with Unity 2019.4 (or earlier), when using the old native Unity VR integration, the way I solve this is by removing VR support (simply disable the checkbox) while I do stuff that only needs desktop support, and re-enable it before doing builds, or testing in-VR.

I haven't played with Unity's XR plugin stuff, so I don't know if it's as easy when using that framework. But with the old stuff, it works just fine.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Sep 15, 2020 @ 7:09am
Posts: 2