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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Bug DLLNotFoundException: UnityMockHMD

Discussion in 'VR' started by edwon, Jul 27, 2022.

  1. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    260
    this incredibly annoying error keeps popping up when playing in the editor, it doesn't seem to actually effect anything, but it really shouldn't be there

    using Unity 2021.2.16f1 on Apple Silicon

    packages
    Mock HMD XR Plugin 1.3.0-preview.1
    XR Interaction Toolkit 2.0.2
    XR Plugin Management 4.2.1

    DllNotFoundException: UnityMockHMD assembly:<unknown assembly> type:<unknown type> member:(null)
    Unity.XR.MockHMD.MockHMDLoader.Initialize () (at Library/PackageCache/com.unity.xr.mock-hmd@1.3.0-preview.1/Runtime/MockHMDLoader.cs:27)
    UnityEngine.XR.Management.XRManagerSettings.InitializeLoaderSync () (at Library/PackageCache/com.unity.xr.management@4.2.1/Runtime/XRManagerSettings.cs:190)
    UnityEngine.XR.Management.XRGeneralSettings.InitXRSDK () (at Library/PackageCache/com.unity.xr.management@4.2.1/Runtime/XRGeneralSettings.cs:175)
    UnityEngine.XR.Management.XRGeneralSettings.AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/com.unity.xr.management@4.2.1/Runtime/XRGeneralSettings.cs:148)
     
  2. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    260
  3. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    260
    finally figured this one out

    you need to disable "Initialize XR on startup" under XR Plug-in Management within the desktop settings
     

    Attached Files:

    jonowo likes this.
  4. jonowo

    jonowo

    Joined:
    Feb 26, 2023
    Posts:
    2
    this worked thank you, i still can't view live on my quest for some reason even though there aren't any errors lol
     
  5. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    399
    If you want to use Mock HMD with apple silicon in order to take stereo paths: it shipped recently as version `1.3.1-preview.1` - you can update to it in package manager. Do note that single-pass instanced is not yet supported on mac hardware so you'll need to switch to multi-pass rendering in the XR Plug-in settings.