Forum Discussion
MikeF
11 years agoTrustee
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!
thanks!
3 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionIf 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.
- vrdavebOculus StaffSee also: UnityEngine.VR.VRDevice.isPresent. http://docs.unity3d.com/ScriptReference/VR.VRDevice-isPresent.html
- MikeFTrusteeThanks 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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device