Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
virror's avatar
virror
Explorer
11 years ago

DK1 display not found in API

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

Replies have been turned off for this discussion
  • 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.