- Home /
Question by
Vice_Versa · Jul 21, 2016 at 08:34 PM ·
vroculusdetectiondetect
Detect If an oculus rift is attached or not
I just started messing around the the leap motion orion assets. Since VR is constantly changing its hard to keep up. Is there a way with the current version of unity and using the orion assets to detect whether or not the oculus is plugged in? I need this to toggle certain prefabs, distances, etc.
Comment
Answer by eralier · Jul 21, 2016 at 10:35 PM
Hello. I seriously doubt that they included a captor to check that but you could use that VRDevice.isPresent, (http://docs.unity3d.com/ScriptReference/VR.VRDevice-isPresent.html) to check if the headset is in working order.