Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
MikeF's avatar
MikeF
Trustee
9 years ago

Proximity sensor troubles

So i've got an application in development that uses a traditional 2d menu for logging in, character selection, options etc... Once the game is launched a prompt to put on the rift is displayed and VR mode is enabled. Now with the cv1 the game is completely paused until the sensor reads true, so its impossible for the player to start a game unless they cover the sensor to "unlock" the menu. Is there any way to disable this functionality? 

3 Replies

Replies have been turned off for this discussion
  • and just as i post this i find the solution.
    VRSettings.enabled = false; will unlock the game, then set to true when entering a scene

    Unfortunately this means i cannot have a message displayed on the rift and have the menu unlocked at the same time, but better than nothing.
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    When you take the Rift off, the app actually loses focus because we switch to a trivial black screen "Rift saver" app. As of Unity 5.3.4p6, "Run in Background" once again works, so you can keep the game updating when it isn't focused. However, unfocused apps still won't render because of the high overhead that would come with.