Search Unity

Bug Failed to load OVRPlugin.dll

Discussion in 'VR' started by Estudio_Haus, Feb 15, 2022.

  1. Estudio_Haus

    Estudio_Haus

    Joined:
    Aug 14, 2018
    Posts:
    2
    Hello, everyone! I started a project today in Unity 2020.3.27f1 and lost a whole day trying to fix this error:

    "Failed to load OVRPlugin.dll
    UnityEngine.Debug:LogError (object)
    Unity.XR.Oculus.OculusLoader:EditorLoadOVRPlugin () (at Library/PackageCache/com.unity.xr.oculus@1.11.2/Runtime/OculusLoader.cs:237)
    UnityEditor.EditorAssemblies: ProcessInitializeOnLoadMethodAttributes ()"

    I already reinstalled Unity, Oculus Integration Package (version 37.0) and XR Plugin Management, but nothing fixed the error.

    The project don't display the error in "PC, Mac & Linux Standalone" build target, only when I switch to "Android" build target. I cannot even Play an empty scene, because everything in Unity freezes in "Inspector.Tick" loading message.

    Can anyone help me with this? This error never happened before and I have several VR apps created in Unity with Oculus Integration plugin.

    Thanks in advance.
     
  2. Estudio_Haus

    Estudio_Haus

    Joined:
    Aug 14, 2018
    Posts:
    2
    I deleted the version 37 of the Oculus Integration Package and instaled the previous version. The error was solved this way.
     
    DevDunk likes this.
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    If you need v37 of the integration maybe try the preview oculus xr plugin?
     
  4. cristinaPunti

    cristinaPunti

    Joined:
    Feb 15, 2022
    Posts:
    1
    Hi,
    I am having the same problem... How do you delete the latest version of Oculus Integration Package in order to install the previous version?

    Hope doing so it will solve it...
     
    whatsdatthingforreal likes this.
  5. ManojBosch9

    ManojBosch9

    Joined:
    Aug 16, 2022
    Posts:
    1
    Install Oculus Integration Package from Asset store.
     
  6. RamjiRajedran

    RamjiRajedran

    Joined:
    Sep 17, 2021
    Posts:
    2
    Hi, I have solved this issue by replacing oculus XR Plugin newer version to older one.
    There are two steps to solve the issue:
    1. Upgrade Oculus Latest version
    (or)
    2. Downgrade Oculus XR Plugin
    Follow this steps to Downgrade Oculus XR Plugin:
    https://github.com/needle-mirror/com.unity.xr.oculus/releases
    1. Download older version of oculus XR plugin 1.xx.x.
    2. Extract the file, you will see "package.json".
    3. In package manager,on the left top corner click "+" icon to "add package from disk", and browse the location where you have dowloaded the package.json.
    there you go, the problem got resolved.
     
    Last edited: Feb 26, 2024