cancel
Showing results for 
Search instead for 
Did you mean: 

DllNotFoundException: OculusPlugin

Hyper_active
Explorer
Hi All,

I'm trying to setup SDK 0.4.0 in my unity project.

I drop the OVRPlayerController in my scene and as soon as I play I get lots (999+) of these errors:

DllNotFoundException: OculusPlugin
OVRGamepadController.GPC_Destroy () (at Assets/OVR/Scripts/OVRGamepadController.cs:85)
OVRGamepadController.OnDestroy () (at Assets/OVR/Scripts/OVRGamepadController.cs:164)

NullReferenceException: Object reference not set to an instance of an object
OVRMainMenu.OnGUI () (at Assets/OVR/Scripts/OVRMainMenu.cs:448)

DllNotFoundException: OculusPlugin
OVRCameraController.Update () (at Assets/OVR/Scripts/OVRCameraController.cs:344)

DllNotFoundException: OculusPlugin
OVRGamepadController.GPC_Update () (at Assets/OVR/Scripts/OVRGamepadController.cs:95)
OVRGamepadController.Update () (at Assets/OVR/Scripts/OVRGamepadController.cs:158)

DllNotFoundException: OculusPlugin
OVRGamepadController.GPC_GetButton (Int32 button) (at Assets/OVR/Scripts/OVRGamepadController.cs:117)
OVRPlayerController.UpdateMovement () (at Assets/OVR/Scripts/OVRPlayerController.cs:249)
OVRPlayerController.Update () (at Assets/OVR/Scripts/OVRPlayerController.cs:168)

NullReferenceException: Object reference not set to an instance of an object
OVRMainMenu.Update () (at Assets/OVR/Scripts/OVRMainMenu.cs:361)



I'm not sure what to do.

It's clearly telling me that Unity can't find the plugin, but it's in the same place as it was for SDK 0.3.2.
And that was working just fine.

I've put the OculusPlugin in all sorts of folders to see if unity was having problems finding it but I still get the same error, whatever I try.

Any ideas?

AB
4 REPLIES 4

UberLax
Honored Guest
I'm having this problem too, please help!

cybereality
Grand Champion
You probably need to move the OculusPlugin to a different folder inside the project.

For example: Plugins/OculusPlugin.dll into Plugins/x86/OculusPlugin.dll.

There should not be any plugins in the plugins root folder. They need to be in x86 or x86_64 subfolders.

UberLax
Honored Guest
Thanks Cyberreality, you are the best! Everyone needs to see this.

Hyper_active
Explorer
That's great! Thanks Cyber!

This won't work on a Mac will it? There doesn't seem to be any 0.4.0 SDK for Mac... :?: