Cross-Platform (Steam and SteamVR) Launch Option.
What we need:
Why we need it:
We're working on a VR game that we want to make cross-platform, including standard PC without a VR headset. We're also trying to set it up so that players with and without VR headsets can play together, so it makes the most sense to do so a single versions of the game.
Because of this cross platform option, the menu needs to show up on the players monitor/TV initially so they can choose what hardware they're playing the game with first, then launch the game through either SteamVR or standard Steam.
What I have come up with as the most straight-forward solution would be to have the game launch through standard Steam, showing a menu for "Play" or "Play in VR", along with controller selection/configuration, and set up the "Play in VR" button to close the game and relaunch it through SteamVR.
I just need to find the proper way to tell it to close and relaunch in VR.
Unreal will actually auto-detect if an HMD is present or not. If that doesn't work for you there is a neat Blueprint node available: https://docs.unrealengine.com/latest/INT/BlueprintAPI/Input/HeadMountedDisplay/IsHeadMountedDisplayEnabled/index.html This will tell you if there is an HMD present or not. You may also peek into the code behind this node to see how you could achieve the same thing in C++ in case you need it :)
I personally find it rather annoying if games I want to play in VR ask me something on the 2D screen because I like to start them from the VR Steam Overlay and would have to take off the HMD again just to answer that question :/
Hope I could help :)
answered Aug 04 '16 at 08:06 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here