cancel
Showing results for 
Search instead for 
Did you mean: 

App Pause / Dash with OpenXR instead of OVR (ovr_GetSessionStatus)

kenontherocks
Level 2

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 3

johnkearney
Level 4

@kenontherocks 
The equivalent OpenXR statuses (which are returned from xrPollEvent) are listed at the bottom of that page.

Thanks,

John

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?

johnkearney
Level 4

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