Forum Discussion
kenontherocks
5 years agoExplorer
App Pause / Dash with OpenXR instead of OVR (ovr_GetSessionStatus)
Hello,
I am converting my Unity project from SteamVR to OpenXR (never used OVR before) to be able to submit to the Oculus store now that it accepts OpenXR. One of the functional requirements is that the app must pause when the user removes the HMD or opens Oculus Dash (VRC.PC.Functional.3). The example code for this: https://developer.oculus.com/documentation/native/pc/dg-vr-focus/ relies on OVR GetSessionStatus. How does one meet the requirement with OpenXR?
Thank you!
3 Replies
- johnkearneyMeta Employee
kenontherocks
The equivalent OpenXR statuses (which are returned from xrPollEvent) are listed at the bottom of that page.
Thanks,John
- kenontherocksExplorer
Derp, once again I didn't scroll down far enough. Thanks for pointing that out. You wouldn't happen to know where I could find Unity C# code example that actually applies these session state changes, would you?
- johnkearneyMeta Employee
Equivalent Unity docs are here: https://developer.oculus.com/documentation/unity/unity-lifecycle/
(I have to admit that I'm somewhat unclear as to how exactly you've integrated as you seem to be asking a mix of Oculus CAPI native, OpenXR native and Unity questions.)
John
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device