Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

Simply detecting the oculus rift's presence [SOLVED]

$
0
0
Hi all,

Could you please help me understand why the first 'if' clause works but the second one returns nothing?

Thanks

Code (CSharp):
  1.     void Start ()
  2.     {
  3.         if ( Ovr.Hmd.Detect() > 0 )
  4.             Debug.Log ( "Rift detected!" );
  5.  
  6.         if ( OVRManager.display.isPresent && OVRManager.tracker.isPresent )
  7.             Debug.Log ( "Both display and tracker are present!" );
  8.     }

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>