Lots of games have options for launching in VR or Desktop modes, either through steam launch options ("Play game", or "Play game in VR") or command line flags (-vrmode none
, --no-vr
) at least from a user perspective. Phasmophobia, which was developed with Unity (engine version unknown) uses the -vrmode none
option to force the desktop version of the game. I'm guessing this was in the 2019 version of unity, as that still supported the dev SKD options under Project Settings -> Player -> XR
. However with the newer 2020 LTS version of unity, using the OpenXR Package, I don't see an equivalent.
I'd like to give a command line option to my game to launch in either VR mode or Desktop mode, then stay in that mode for the game session. Is there a way to do this with the OpenXR package?
Engine: Unity 2020.3.15f2
Template: Universal Render Pipeline
XR Interaction Toolkit Package: 1.0.0-pre.5 [Preview]
XR Plugin Management: 4.0.7
Only OpenXR is selected in XR Plug-In Management. This is a bare-bones project with an XR rig and a single intractable for testing.