DK1 API issues

Hey!
I can use my DK1 just fine as long as i just drop in the camera prefab and all is working great. But as soon as i want to access something from the API like “OVRManager.display.isPresent” or “OVRManager.display.RecenterPose()” i have the problem that “OVRManager.display” always returns null, any idea why?
Using latest SDK and runtime and are not using legacy DK1 mode.

Got this solved, OVRManager had not had its Awake() run yet, calling that function solved my issues : )

Hi virror,

Is this the same problem as my using:

if ( Ovr.Hmd.Detect() > 0 )
            Debug.Log ( "Rift detected . ." );

and getting results, but when using:

if ( OVRManager.display.isPresent && OVRManager.tracker.isPresent )
            Debug.Log ( "Both display and tracker are present!" );

I get nothing?

No idea, i just used OVRManager.display.isPresent and it worked well for me.

1 Like