In packaged games only, "Is Head Mounted Display" always triggers true

Hello. When I use “Is Head Mounted Display Enabled” in editor or through play, it works perfect… If in VR mode, it loads my VR stuff, if not in VR preview and the headset is not in use, it loads non VR stuff.

However it functions differently when packaged. I think it’s detecting my headset regardless of whether or not I have it on or am using the -vr target parameter to force VR… and thus it’s always loading my VR stuff, even when I want non VR mode. This makes it impossible for me to test non VR without unplugging my HMD, which isn’t realistic, and kind of defeats the entire point of the “is Head Mounted Display enabled node”

4.15 (I had this on 4.14 as well) introduced a new node “Is Head Mounted Display Connected” to work alongside “Enabled” which made me think the issue was fixed… but no. The command properly works in stand-alone mode, it works in all forms of editor play testing… but when packaged, It always registers as enabled.

I even had my friend make C++ code that checks if the HMD is enabled AND the game is in stereo mode even THAT registers true, even though it’s not! Again, works great in editor or stand alone mode.

Thanks for trying, unfortunately it’s not checked off for me so that’s not the issue :frowning:

One idea -
There’s a project setting (under “Project Settings”->“Project”->“Description”) called ‘Start in VR’ - if that’s true, it will always start in VR in a packaged build.

127519-startinvr.png

I have no VR plugins enabled except anything that comes by default.

Hi , can you please list all the VR plugins that you have enabled?

Hey ,
I’m facing the same issue with the packaged version, I get a side by side output even when the HMD isn’t connected (UE4.18, SteamVR, Start in VR - unchecked). Were you able to solve the issue?

Disable the Simple HMD Plugin before packaging.

I know this Topic is old but i have the Problem that if i start a packaged Project i have a strange camview as you can see in the Screenshot.

Its a Projects that starts normal at the Desktop and only if you want you can switch to VR