Skip to main content
Participant
July 18, 2014

DLL errors in Unity

Hi Guys,

I hope someone can help, I am not sure why this is happening, could be a misplacement of folders or something.

Using Unity 4 Version 4.5.2f1

I can get the oculus working fine but for some reason if I save and close and reopen I get this list of errors and the screen is just black.

    DllNotFoundException: OculusPlugin
    OVRDevice.Awake () (at Assets/OVR/Scripts/OVRDevice.cs:147)

    DllNotFoundException: OculusPlugin
    OVRDistortionMesh.GetIdealFOV () (at Assets/OVR/Scripts/OVRDistortionMesh.cs:105)
    OVRCamera.GetIdealVFOV () (at Assets/OVR/Scripts/OVRCamera.cs:293)
    OVRCameraController.InitCameraControllerVariables () (at Assets/OVR/Scripts/OVRCameraController.cs:224)
    OVRMainMenu.Start () (at Assets/OVR/Scripts/OVRMainMenu.cs:224)

    DllNotFoundException: OculusPlugin
    OVRGamepadController.GPC_Initialize () (at Assets/OVR/Scripts/OVRGamepadController.cs:70)
    OVRGamepadController.Start () (at Assets/OVR/Scripts/OVRGamepadController.cs:152)

    DllNotFoundException: OculusPlugin
    OVRDistortionMesh.GetIdealFOV () (at Assets/OVR/Scripts/OVRDistortionMesh.cs:105)
    OVRCamera.GetIdealVFOV () (at Assets/OVR/Scripts/OVRCamera.cs:293)
    OVRCameraController.InitCameraControllerVariables () (at Assets/OVR/Scripts/OVRCameraController.cs:224)
    OVRCameraController.Start () (at Assets/OVR/Scripts/OVRCameraController.cs:193)

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

    DllNotFoundException: OculusPlugin
    OVRGamepadController.GPC_GetAxis (Int32 axis) (at Assets/OVR/Scripts/OVRGamepadController.cs:95)
    OVRPlayerController.UpdateMovement () (at Assets/OVR/Scripts/OVRPlayerController.cs:287)
    OVRPlayerController.Update () (at Assets/OVR/Scripts/OVRPlayerController.cs:147)



And this list goes on.

I looked at another post here:https://developer.oculusvr.com/forums/viewtopic.php?f=37&t=6323&p=110384&hilit=DllNotFoundException%3A+OculusPlugin+OVRDevice.Awake+at+Assets%2FOVR%2FScripts%2FOVRDevice.cs%3A147+#p110384

But everyone switched to Mac in the conversation and I never found a resolve.

Does anyone have any suggestions or have the same error?
    This topic has been closed for replies.

    4 replies

    Participant
    July 18, 2014
    Ok so it all works but when you close Unity and reopen, all the dll errors come up and the screen is black. Is there something happening to the scene or project layout upon closing or opening unity?
    Participant
    July 18, 2014
    This happens when putting the Leap controller and the Rift Controller in the same scene. But it works fine before I close it. I don't understand why.
    Up and Coming
    July 19, 2014
    I encountered the same problem and found the solution here: viewtopic.php?f=37&t=6764&p=115859&hilit=leap+motion#p115859
    check out my Mobile VR Jam 2015 title Guns N' Dragons
    Participant
    July 21, 2014
    Aw brilliant Gerald! Thank you for this. I will give this a shot later today. :D