Forum Discussion
sethwklein
8 years agoExplorer
Oculus Utilities for Unity 1.18.1 screaming about OVR Plugin version after plugin upgrade
When I use Oculus Utilites for Unity version 1.18.1 it screams about the OVR Plugin version AFTER I let it upgrade the OVR Plugin and restart Unity, and I see conflicting stories about what the OVR Plugin version is.
Steps to reproduce:
* Get a computer running OS X/MacOS 10.12.6 (other versions may also reproduce)
* Get Unity 5.6.2f1 installed (other versions may also reproduce)
* Create a new project
* Download Oculus Utilites for Unity 1.18.1
* Unzip, and import...
* ... saying yes to upgrading OVR Plugin...
* and restarting Unity.
* Delete Main Camera and throw an OVRCameraRig in the scene
* Click play
* Observe versions printed in console:
Unity v5.6.2f1, Oculus Utilities v1.18.1, OVRPlugin v1.14.1, SDK v0.0.0.
* Observe firehose of spam in console:
ovrp_GetAppHasInputFocus only available on 1.18 and newer plugins
UnityEngine.Debug:LogWarning(Object)
OVRPlugin:get_hasInputFocus() (at Assets/OVR/Scripts/OVRPlugin.cs:964)
OVRManager:Update() (at Assets/OVR/Scripts/OVRManager.cs:1089)
* Click stop
* Tools -> Oculus -> Update OVR Utilities Plugin
* Observe dialog claiming "Current version: 1.18.1" and no upgrade possible
* Expected behaviour:
* No spam firehose
* The following versions reported in the console
Unity v5.6.2f1, Oculus Utilities v1.18.1, OVRPlugin v1.18.1, SDK v0.0.0.
* Tools -> Oculus -> Disable OVR Utilites Plugin
* Restart Unity
* Click play
* Observe the reported OVRPlugin version is now lower
Unity v5.6.2f1, Oculus Utilities v1.18.1, OVRPlugin v1.14.0, SDK v0.0.0.
Previous thread on the subject where it is assumed that the OP didn't want to upgrade OVR Plugin even though they mention taking steps to ensure old versions didn't remain. Hopefully the reproduction steps in this thread will avoid a repeat.
Steps to reproduce:
* Get a computer running OS X/MacOS 10.12.6 (other versions may also reproduce)
* Get Unity 5.6.2f1 installed (other versions may also reproduce)
* Create a new project
* Download Oculus Utilites for Unity 1.18.1
* Unzip, and import...
* ... saying yes to upgrading OVR Plugin...
* and restarting Unity.
* Delete Main Camera and throw an OVRCameraRig in the scene
* Click play
* Observe versions printed in console:
Unity v5.6.2f1, Oculus Utilities v1.18.1, OVRPlugin v1.14.1, SDK v0.0.0.
* Observe firehose of spam in console:
ovrp_GetAppHasInputFocus only available on 1.18 and newer plugins
UnityEngine.Debug:LogWarning(Object)
OVRPlugin:get_hasInputFocus() (at Assets/OVR/Scripts/OVRPlugin.cs:964)
OVRManager:Update() (at Assets/OVR/Scripts/OVRManager.cs:1089)
* Click stop
* Tools -> Oculus -> Update OVR Utilities Plugin
* Observe dialog claiming "Current version: 1.18.1" and no upgrade possible
* Expected behaviour:
* No spam firehose
* The following versions reported in the console
Unity v5.6.2f1, Oculus Utilities v1.18.1, OVRPlugin v1.18.1, SDK v0.0.0.
* Tools -> Oculus -> Disable OVR Utilites Plugin
* Restart Unity
* Click play
* Observe the reported OVRPlugin version is now lower
Unity v5.6.2f1, Oculus Utilities v1.18.1, OVRPlugin v1.14.0, SDK v0.0.0.
Previous thread on the subject where it is assumed that the OP didn't want to upgrade OVR Plugin even though they mention taking steps to ensure old versions didn't remain. Hopefully the reproduction steps in this thread will avoid a repeat.
2 Replies
Replies have been turned off for this discussion
- sethwkleinExplorerImporting Oculus Utilities for Unity 1.19.0 (probably or later, when they update it again) adds an OVR Plugin version (1.19.0) that doesn't have this problem. You can update using Tools -> Oculus -> Update OVR Utilities Plugin. My guess is someone didn't update the version code in 1.18.1, but that's just a guess.
Beware that utilities 1.19.0 has an incompatible change that sample framework 1.19.0 doesn't support. (Which is probably why the sample framework still includes plugin 1.18.1.) You'll have to comment out a couple lines in one file, or port it if you use it. The compiler error will tell you which. - sethwkleinExplorerTurns out I did make a commit of disabling the sample framework file that requires utilities 1.18.1 or lower. Enjoy :)
diff --git a/Assets/SampleScenes/InputForcusSystemOverlay/Scripts/InputForcusSystemOverlaySample.cs b/Assets/SampleScenes/InputForcusSystemOverlay/Scripts/InputForcusSystemOverlaySample.cs
index a718b14b..06e9846c 100755
--- a/Assets/SampleScenes/InputForcusSystemOverlay/Scripts/InputForcusSystemOverlaySample.cs
+++ b/Assets/SampleScenes/InputForcusSystemOverlay/Scripts/InputForcusSystemOverlaySample.cs
@@ -72,8 +72,11 @@ public class InputForcusSystemOverlaySample : MonoBehaviour
{
OVRManager.InputFocusAcquired += OnInputFocusAcquired;
OVRManager.InputFocusLost += OnInputFocusLost;
- OVRManager.SystemOverlayPresented += OnSystemOverlayPresented;
- OVRManager.SystemOverlayHide += OnSystemOverlayHide;
+ // This project contains a newer OVR Manager that doesn't have
+ // these.
+ Debug.LogError("InputForcusSystemOverlaySample doesn't support the newer version of OVRManager in this project. Expect subtle breakage");
+ // OVRManager.SystemOverlayPresented += OnSystemOverlayPresented;
+ // OVRManager.SystemOverlayHide += OnSystemOverlayHide;
}
// Update is called once per frame
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago