Skip to main content
Inspiring
August 10, 2014

Auto dismiss health warning in Unity (unitypackage)

I know a lot of you guys want to have the health warning removed. I don't know how to remove it, but I got it to auto dismiss. After a few seconds, the warning disappears on its own. No need to press the anykey button.

Look at line 111 in OVR\Scripts\OVRDevice.cs

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


and change it to:

if (HMD != null && HMD.GetHSWDisplayState().Displayed)


For those who don't want to edit any files, I attached a zip file containing a unitypackage that you can import into your project. Use it to overwrite OVRDevice.cs after backing up your project first.

auto-dismiss-hsw.zip
    This topic has been closed for replies.

    7 replies

    Up and Coming
    August 10, 2014
    Great tip! The warning becomes really annoying after a while and the default script doesn't accept "any key" but space, and most of the demos I've seen so far don't change this, so thanks ;)
    Participant
    August 10, 2014
    This got really annoying after a while, I don't know how they thought this was a great idea to have and everyone will want to start their project with that Warning displaying...
    New Participant
    December 8, 2014
    The HSW can be auto-dismissed in the latest (v0.4.4) version of the Unity 4 Integration plugin by changing:

    Line 521 of OVR/Scripts/OVRManager.cs from
    if (isHSWDisplayed && Input.anyKeyDown)

    to
    if (isHSWDisplayed)
    bzor
    Up and Coming
    April 29, 2015
    this doesn't seem to be working now, is there a new method for 0.5.0.1?
    Up and Coming
    April 30, 2015
    hit win + r

    paste

    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Oculus VR, LLC\LibOVR" /v "HSWToggleEnabled" /t REG_SZ /d 1

    open oculus configuration utility

    click advanced

    disable health and safety warning.
    bzor
    Up and Coming
    April 30, 2015
    perfect, that did it.. thanks!!
    Up and Coming
    May 2, 2015
    "SAOTA" wrote:
    hit win + r

    paste

    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Oculus VR, LLC\LibOVR" /v "HSWToggleEnabled" /t REG_SZ /d 1

    open oculus configuration utility

    click advanced

    disable health and safety warning.


    Thanks for the tip. I still don't see why this isn't a default option for developers
    Golf Masters DK2 Alpha, GOLF MASTERS