Skip to main content
Inspiring
May 17, 2016

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? 
    This topic has been closed for replies.

    3 replies

    MikeFAuthor
    Inspiring
    May 17, 2016
    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.
    Inspiring
    May 17, 2016
    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.
    MikeFAuthor
    Inspiring
    May 17, 2016
    ahhh very good to know! thanks Dave