Pausing Game While HMD Off Or In Oculus Menu
Hello, I'm making a game for the Oculus Rift. I need to fire a custom event when the HMD is removed and/or when the player hits the Oculus Menu button. This custom event will pause the game so that time isn't passing while in the oculus menu and/or headset is removed from the player's head.
Does anyone know how this can be done? I've been searching for BP nodes that remotely resemble anything pertaining to these tasks and came up empty. I've also checked this site and others for answers to no avail.
Any help will be greatly appreciated, Thank you!
After testing I found that this works for what I needed but you have to constantly parse it. I was hoping for an event to be fired when the HMD was removed but haven't had any luck finding it. If anyone knows please reply. Thank you,
answered Oct 19 '17 at 12:21 AM
You can use the VRNotifications component to check if the user has removed their headset, as explained by st.shaeen.
But you can also use the "Get VR Focus State" to get the same result. On Windows 7 the "Get VR Focus State" node will also return false when the Oculus menu is up, but if you're running on Windows 10 you'll need to use the "Has System Overlay Present" node in order to trigger a pause when the Oculus menu is up.
Please note that these features will only work for the Oculus and not the Vive.
answered Feb 05 '19 at 09:42 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here