Skip to main content
Up and Coming
Aug 14, 2014 9:24 AM UTC

How do you detect that the health and safty screens gone?

Pretty much what the subject says. What way do I test that the health and safety menu that appears has gone? I'm programming in Unity Java so a solution that was it that would be best.

Cheers

Phil
    This topic has been closed for replies.

    3 replies

    Participant
    Aug 17, 2014 11:41 PM UTC
    In a loop check the following:

    if(!OVRDevice.HMD.GetHSWDisplayState().Displayed)
    {
    //do something now that the Health and safety warning is gone
    //then break out of loop
    }
    philedayAuthor
    Up and Coming
    Aug 19, 2014 9:20 AM UTC
    Cheers. I'll give that a go later and post back if I have any problems.
    philedayAuthor
    Up and Coming
    Aug 19, 2014 10:46 PM UTC
    Just to let people know that it worked great, thanks.