Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
phileday's avatar
phileday
MHCP Member
11 years ago

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

3 Replies

Replies have been turned off for this discussion
  • 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
    }
  • Cheers. I'll give that a go later and post back if I have any problems.