Auto dismiss health warning in Unity (unitypackage)
- 7 replies
- 3295 views
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
and change it to:
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
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
