Forum Discussion

kenontherocks's avatar
5 years ago

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

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

    Thanks,

    John

    • kenontherocks's avatar
      kenontherocks
      Explorer

      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?