Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
donp3yote's avatar
donp3yote
Honored Guest
13 years ago

First time setup errors

Hi,

We're trying to set up Unity Pro (free trial just started today) to work with our new Rift.

I did the steps in a previous thread (viewtopic.php?p=9969#p9969) to try to just get something quick going in Unity so we can get a feel for our scene we made, but immediately I'm getting errors that I can't figure out, so hopefully some of you guys could help.

Here's my errors:

DllNotFoundException: C:/Users/Documents/New Unity Project/Assets/Plugins/OculusPlugin.dll
OVRDevice.GetPlayerEyeHeight (System.Single& eyeHeight) (at Assets/OVR/Scripts/OVRDevice.cs:741)
OVRCameraController.UpdatePlayerEyeHeight () (at Assets/OVR/Scripts/OVRCameraController.cs:310)
OVRCameraController.UpdateCameras () (at Assets/OVR/Scripts/OVRCameraController.cs:181)
OVRCameraController.Update () (at Assets/OVR/Scripts/OVRCameraController.cs:132)
NullReferenceException: Object reference not set to an instance of an object
OVRMainMenu.Update () (at Assets/OVR/Scripts/OVRMainMenu.cs:313)
DllNotFoundException: C:/Users/Documents/New Unity Project/Assets/Plugins/OculusPlugin.dll
OVRGamepadController.GPC_GetAxis (Int32 axis) (at Assets/OVR/Scripts/OVRGamepadController.cs:70)
OVRPlayerController.UpdateMovement () (at Assets/OVR/Scripts/OVRPlayerController.cs:279)
OVRPlayerController.Update () (at Assets/OVR/Scripts/OVRPlayerController.cs:139)
DllNotFoundException: C:/Users/Documents/New Unity Project/Assets/Plugins/OculusPlugin.dll
OVRGamepadController.GPC_Update () (at Assets/OVR/Scripts/OVRGamepadController.cs:65)
OVRGamepadController.Update () (at Assets/OVR/Scripts/OVRGamepadController.cs:120)
DllNotFoundException: C:/Users/Documents/New Unity Project/Assets/Plugins/OculusPlugin.dll
OVRDevice.GetPredictedOrientation (Int32 sensor, UnityEngine.Quaternion& q) (at Assets/OVR/Scripts/OVRDevice.cs:378)
OVRCamera.SetCameraOrientation () (at Assets/OVR/Scripts/OVRCamera.cs:247)
OVRCamera.OnPreCull () (at Assets/OVR/Scripts/OVRCamera.cs:134)
DllNotFoundException: C:/Users/Documents/New Unity Project/Assets/Plugins/OculusPlugin.dll
OVRDevice.GetLatencyResultsString () (at Assets/OVR/Scripts/OVRDevice.cs:568)
OVRCamera.LatencyTest (UnityEngine.RenderTexture dest) (at Assets/OVR/Scripts/OVRCamera.cs:290)
OVRCamera.OnRenderImage (UnityEngine.RenderTexture source, UnityEngine.RenderTexture destination) (at Assets/OVR/Scripts/OVRCamera.cs:198)
DllNotFoundException: C:/Users/Documents/New Unity Project/Assets/Plugins/OculusPlugin.dll
OVRDevice.GetLatencyResultsString () (at Assets/OVR/Scripts/OVRDevice.cs:568)
OVRCamera.LatencyTest (UnityEngine.RenderTexture dest) (at Assets/OVR/Scripts/OVRCamera.cs:290)
OVRCamera.OnRenderImage (UnityEngine.RenderTexture source, UnityEngine.RenderTexture destination) (at Assets/OVR/Scripts/OVRCamera.cs:198)
DllNotFoundException: C:/Users/Documents/New Unity Project/Assets/Plugins/OculusPlugin.dll
OVRDevice.GetPlayerEyeHeight (System.Single& eyeHeight) (at Assets/OVR/Scripts/OVRDevice.cs:741)
OVRCameraController.UpdatePlayerEyeHeight () (at Assets/OVR/Scripts/OVRCameraController.cs:310)
OVRCameraController.UpdateCameras () (at Assets/OVR/Scripts/OVRCameraController.cs:181)
OVRCameraController.Update () (at Assets/OVR/Scripts/OVRCameraController.cs:132)


Thanks so much I hope it's just a derp moment.
Speaking of, isn't there a "complete step-by-step guide for Dummies" to first time Unity+Rift users like me? I can't seem to google anything for the life of me, those errors either.

Thanks again appreciate any help and your time!

1 Reply

Replies have been turned off for this discussion
  • Even though it is in the step by step guide you followed, it looks like you haven't imported all of the files from the Oculus Unity package.

    When you import the OculusUnityIntegration.unitypackage into your Unity project you should end up with some files in the Assets/Plugins folder, one of which is the OculusPlugin.dll. You should also end up with an Assets/OVR/Scripts folder which should include the OVRDevice.cs, OVRCameraController.cs files amongst others. Your errors are saying these are all missing.

    You have probably already done all of this but try importing the OculusUnityIntegration.unitypackage again. The steps for me are a touch different to the guide, probably because of the newer Unity version I am using. Go to Assets->Import Package->Custom Package. Browse to the OculusUnityIntegration.unitypackage and select it, you should then see an Importing package window showing the contents of the package. Everything should be ticked and click Import.

    If those files are imported correctly and you are still getting those errors, then I have no idea.