Skip to main content
Up and Coming
December 10, 2014

health warning

I use if(OVRManager.isHSWDisplayed == false){ to detect whether the health warning is still active but for some reason it doesn't always return false and you find yourself pressing any key and the health and safety doesn't disappear and the game starts.

Anyone else have anything similar?
    This topic has been closed for replies.

    3 replies

    Inspiring
    December 10, 2014
    If the health and safety warning refuses to disappear, then please delete your Config Util profile and create a new one. I thought this was supposed to be fixed, but if you have an old profile it may be corrupted.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    philedayAuthor
    Up and Coming
    December 29, 2014
    Thanks for your reply and sorry for the slow response. I'll try that and let you know if it work. Thanks
    philedayAuthor
    Up and Coming
    April 21, 2015
    I have continued to come across this issue and believe that I know what's happening now. When the program runs the first thing in my script it tests the to see if the health and safety has gone before opening the menus etc. What seems to be happening is that the health and safety actually starts off testing as false before then appearing and testing true and then going testing as false again. My program reads this sometimes manages to read the value quick enough to test as false before it comes up. I fixed this, although I don't know why this seems to fix it, by reading the value and putting it into 3d text object before it gets to my test.

    if(OVRManager.isHSWDisplayed == true){fredfred.GetComponent(TextMesh).text = "true";}
    if(OVRManager.isHSWDisplayed == false){fredfred.GetComponent(TextMesh).text = "false";}

    This seems to give the hswdisplayed enough time to get running before I test it again properly.

    Thought I'd post in case other people were having this problem.