Skip to main content
Up and Coming
July 26, 2014

Getting rid of health and safety warning

What is the proper way to get rid of the health and safety warning in Unity?
In OVRDevice.cs, I tired commenting out this:

if (HMD != null && Input.anyKeyDown && HMD.GetHSWDisplayState().Displayed)
HMD.DismissHSWDisplay();

and adding this to the end of Awake():

HMD.DismissHSWDisplay();


But that only works in the Editor but in the standalone version the head tracking stops working and the warning is not removed.

    261 replies

    Inspiring
    April 3, 2016
    Well, the new runtime changed everything. Now it will display the H&S warning when you start something, and (apparently) periodically (with at least 30 minutes between two display of the warning screen)
    And yeah, it's a bit annoying but you just have to press "A" on the Xbox controller
    CV1+Touch; Running on GTX980 - 4770K - 32GB DDR3 Developer at LIV