Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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:
    2,955
    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.