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
    August 21, 2014
    "scawen" wrote:
    Just wait and see. One day Palmer will regret it.

    He had the chance to run something really great. Now he just does what he is told.

    Well I'm no legal expert but I think they do have to protect themselves seriously because don't kid yourself, people will hurt themselves and the lawsuits will come and they have to be ready.

    Nintendo also has legal bullcrap every time you start a game but it doesn't feel as intrusive.

    I think the technical implementation is flawed and rushed and they should better communicate the need of doing this to their developers but with all due respect, you're blowing this out of proportion in my humble opinion.
    Up and Coming
    August 21, 2014
    I think you missed my point slightly. When I said Palmer would regret it, I meant the act of selling out to facebook. He threw away control of his own business. Such a young man's error, looking at dollar signs. What Oculus could have become, a force in its own right. Now every decision they ever make will be scrutinised with the question of "will it increase or decrease the value of facebook share price".

    I don't think I'm blowing it out of proportion. The attitude these guys have, that they can constantly ignore reasonable questions, is bound to make me a bit angry. It's obvious. When you are working hard and a simple question about implementation isn't answered after 7 days, and no acknowledgement is given for detailed bug reports, it makes you a bit annoyed. It's just not the way to treat people and this is the result.
    Live for Speed - www.lfs.net
    Inspiring
    August 21, 2014
    Well, growing pains I assume.

    That being said, when my DK1 broke they've sent me a replacement within the week and that was after the Facebook buyout so it's not all bad. :)
    Up and Coming
    August 21, 2014
    Yeah, this was never going to be a good day for me.

    Can't tell you how much time I've spent looking at that message today.

    Time for a break, good night! :)
    Live for Speed - www.lfs.net
    Inspiring
    August 21, 2014
    A well deserved break my friend, and be sure that the work you're doing on LFS is really appreciated by the whole VR "community". I hate that fucking word but I digress...

    Thanks to you, I can never play another driving sim on a monitor ever again. :lol:

    I hope your issues with Oculus get resolved soon.
    Up and Coming
    August 21, 2014
    Why is this warning showing on every scene in my unity game!!!! this sucks :( , it should only show once at start of game...not at loading of every scene. Please fix/update/improve in next sdk :)

    I already starting to get health issues by looking at that warning xxxxxxtimes, for goodness sake ;)
    Up and Coming
    August 22, 2014
    "mrgreen72" wrote:
    I hope your issues with Oculus get resolved soon.

    I'll just try and get this warning finished today, along with a better view position reset thing.

    I think my personal irritation with Oculus right now is just because they are not communicative enough. With all this activity on the DK2 release, they needed some more Cybereality type people, making some effort to talk to people. Instead Cyber went on holiday and, inexplicably, no-one with any knowledge came in to help. He obviously can't keep up with all the activity here (assuming he doesn't think it's polite to ignore people with reasonable questions). I have seen very few comments from Oculus on all the issues found in the SDK, so something's wrong there.

    "khos85" wrote:
    I already starting to get health issues by looking at that warning xxxxxxtimes, for goodness sake ;)

    Haha! If you are American, you should sue them for that and that will teach them a lesson! :D
    Live for Speed - www.lfs.net
    August 22, 2014
    This sounds completely retarded to be quite honest, just have a warning when testing and setting up the oculus, and then have a "do not notify me about this again" option to disable the prompts in future.

    It's completely and utterly unreasonable to spam people with this kind of nonsense, once is enough, if other people who have not seen the warning use the device that's completely beyond Oculus's control.

    People WILL patch this out themselves even if it means someone writing a tool that finds the memory location of the setting and flips it, at this point all you've done is successfully pissed off your entire userbase, wasted the time of developers to write patches and keep testing them against future revisions, waste user time searching for and using the patches, and decreased security because fake patches might contain viruses and stuff like that.

    I seriously hope this is not a reflection of the kind of decision making we can expect from Oculus in future.
    Up and Coming
    August 22, 2014
    Well, I have to weigh in too, though its all been said already.

    Such health and safety warnings need to be shown at appropriate times and ONCE per user. And never with some sort of long delay before the warning can be dismissed.

    I am in a DK2 linked program just now which regularly switches between 2D and 3D modes while in the same run of the program, and the HSW warning and delay comes up on EVERY switch... can you imagine how much that disrupts the immersion.

    I am seeing the warning in between 3D mod switching every time, and having to wait (6 seconds I assume) before I can get back to where I was before some minor menu interaction!

    This needs a bit of brain engagement.... a platform should not dictate the creative ways in which it can be used. But guidelines are fine, and a simple means to show such a health and safety warning also is okay. But when its shown and how should be left to a developer. It may indeed be better done BEFORE the 3D immersion starts.
    Up and Coming
    August 22, 2014
    "scawen" wrote:
    All I have to do now is make various game screens move their things aside to avoid overwriting the message.


    I cringe when I think about this from a UI design perspective. You may dismiss this after XYZ seconds... every time they play your (or any) game. Yuck.

    I definitely think you should disclaimer the HSW itself with your own message - pointing out that this message is inflicted on the user at the behest of Oculus and not the developer, and to email them at blahblah@oculus.com to complain about it and make it so you can instead show it once.

    This type of annoyance to the user can really generate bad press.
    Twitter IndieDB