How to make a game that support vr mode and genernal mode in the same time?

I would like to publish it on steam ,and wanna support two modes that vr and genernal first person controller mode… So what is the easiest way to make it? Just like below

7976424--1023666--upload_2022-3-19_12-6-23.png

7976424--1023663--upload_2022-3-19_12-4-14.png

Just write a script that can flip between VR and normal (just turn on or off all the vr cam/normal cam depending on which you want), and i guess you need to pass in a command line argument to say which one.

Any open-Source project for it?:smile:

No offense, but I guess whether vr mode would be different from normal mode more than a single script…

If I used openxr(A vr plugin in unity) for the game,the would be more complicated…

And by the way,did you mean a single “switch mode” script is to luanch separated game contents?

You can turn on and off the player game object of the VR and regular player

1 Like

And by the way

What supply this dialog?:smile:

I asked CodeParadise, this is the reply: It’s just a Steam launch option, all it does is add the -startXR commandline argument. If you’re just running the exe without Steam and want to launch into VR, you’ll have to do Hyperbolica.exe -startXR

1 Like