How do I detect the presence of the Oculus health and safety warning?

When your Oculus application starts, a health and safety warning gets displayed. How can I detect whether the health and safety warning is still on the screen?

3 Answers

3

OVRDevice.HMD.GetHSWDisplayState().Displayed

Returns a bool - true if the HSW is being displayed, false if it isn’t.

In the new version of the Oculus Unity API the correct call is ‘OVRManager.capiHmd.GetHSWDisplayState().Displayed’.

With Oculus Utilities v1.6 use:

OVRManager.isHSWDisplayed

See their documentation for details.