cancel
Showing results for 
Search instead for 
Did you mean: 

DK1 display not found in API

virror
Explorer
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.
3 REPLIES 3

virror
Explorer
Anyone? This is quite the showstopper atm : /

vrdaveb
Oculus Staff
Are you trying to access OVRManager.display before OVRManager.Awake() has run? Generally, you shouldn't use it until your Start() or Update() methods. But you can make sure OVRManager wakes up first by setting its order to a lower number in Edit > Project Settings > Script Execution Order.

virror
Explorer
Ahh, stupid me, that was the problem!
Thanx a lot : )