Forum Discussion
virror
11 years agoExplorer
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.
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
- virrorExplorerAnyone? This is quite the showstopper atm : /
- vrdavebOculus StaffAre 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.
- virrorExplorerAhh, stupid me, that was the problem!
Thanx a lot : )
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 21 days ago