Forum Discussion

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

Fixing a Unity project on which OVR is broken

I have a Unity 4.6.0f3/OVR 0.4.4 project of fairly significant size on which my OVR integration has stopped working. I am getting this error in the console:

first:
DllNotFoundException: OculusPlugin
OVRManager.Awake () (at Assets/OVR/Scripts/OVRManager.cs:328)

then many other errors which I'm sure are related to this initial one. If I build an exe and try to run it, it gives me an error that it can't inject the Oculus DLL. I've tried deleting the OVR folder from the project and re-importing the integration package with the same results. It's like it can't find the Oculus dll?

I know all of my integration files, drivers, etc are working- because if I create a new blank Unity project and scene, and bring in the same OculusUnityIntegration package, it works fine and I can build and go DirectToRift with no issues.

The problem doesn't appear to just be the scene, but the overall project. If I create a new blank scene within the broken project and only have the OVRCameraRig in there, it gets the same error as above.

Any ideas on fixing this? I'd rather not move everything laterally to a new project, as fun as that would be.

2 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    OK, I actually found the fix. Normally I do search the forums before asking about what would be a common problem. The problem is that I searched on the other errors I was having and not that initial OculusPlugin dll error, and had edited my post after finding that initial error. I found this forum post with the answer:

    viewtopic.php?f=37&t=15801&p=208136&hilit=dllnotfoundexception#p208136

    apparently my entire PlugIns folder was mysteriously gone from the broken project. So I copied it from a good project and now OVR is back to normal.

    Sorry! Leaving this here in case anyone runs into similar issues.
  • Anonymous's avatar
    Anonymous
    OK, so mystery solved.. my Plugins folder just got dragged to a different folder. Likely when I was testing my game and mousing/clicking wildly within Unity. I wish Unity would lock the project browser from changes while in play mode!