I’m using the Oculus CV1. I can test my game no problem using the VR. But when i go to launch it, it decides to not use the VR. How do i make it so it launches for the VR?
Thank you in advance
I’m using the Oculus CV1. I can test my game no problem using the VR. But when i go to launch it, it decides to not use the VR. How do i make it so it launches for the VR?
Thank you in advance
Are you talking about when launching a standalone game outside of the editor? You have to use the console command “stereo on.” You can automate this by triggering it from BeginPlay in your Level blueprint.
I’m not sure if it’s a bug, but if you launch the game as a stand-alone game from the editor, the VR console commands will not work.
However, the commands will work when the game is packaged.
If you want to enable the HMD right away just do on begin play -> HMD enabled (or enable HMD, one of them) and it’ll go to VR automatically.
Alternatively you can use the console command Stereo On either typing it yourself or as a BP node.
There is the “vr.bStartInVR” console option in the Oculus plugin. However for some unknown reason it does not get saved to any INI file as far as I can see. If you are compiling the engine from source, you can grep for ‘CStartInVRVar’ and set that to default 1 instead of 0, that should work.
Alternatively, you can just launch the engine with the “-vr”, that should have the same effect. Though that will be inconvenient if you are planning to distribute your game to others because they will have to set it as well.