Skip to main content
Inspiring
August 31, 2015

5.1.1p3 & utilities pack OVRManager.display.isPresent

I'm currently in the process of updating an older app that used the legacy integration. The setup we have is meant to detect if the rift is present, if not then revert to a mono camera. The method used was OVRManager.display.isPresent, however this doesnt seem to exist in the utilities integration, what would be the equivalent?

thanks!
    This topic has been closed for replies.

    3 replies

    Inspiring
    August 31, 2015
    If you're using Unity 5 native VR support, it does this automatically. You can test it by just unplugging the Rift and running your VR app.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Inspiring
    August 31, 2015
    See also: UnityEngine.VR.VRDevice.isPresent. http://docs.unity3d.com/ScriptReference/VR.VRDevice-isPresent.html
    MikeFAuthor
    Inspiring
    August 31, 2015
    Thanks Dave, that did the trick!

    Cyber: Yeah i'd prefer to go that route but we already have a lot of work put into our UI which is specific to both camera setups so it'd be a pain to port over. Will be using that method in the future though.