Skip to main content
New Participant
March 15, 2025

Depth API and Occlusion not working after the March 14 Unity SDK Update

After laying it down for a while, I just continued working on my MR application. Upon reopening and testing, it gets stuck on "Windows.Repaint - Waiting for Unity Core DLL to .....". After updating the SDK and tweaking the project, I reimplemented the controls and core features. But the Depth API and Occlusion is not working returning the following errors:

EnvironmentDepth is disabled. Please enable XR provider in 'Project Settings / XR Plug-in Management'.
UnityEngine.Debug:LogError (object)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager:CreateProvider () (at ./Library/PackageCache/com.meta.xr.sdk.core@74.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:161)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager:get_provider () (at ./Library/PackageCache/com.meta.xr.sdk.core@74.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:133)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager:get_IsSupported () (at ./Library/PackageCache/com.meta.xr.sdk.core@74.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:168)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager:Awake () (at ./Library/PackageCache/com.meta.xr.sdk.core@74.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:234)
Environment Depth could not be retrieved! Please ensure the following:

When running over Link, the spatial data feature needs to be enabled in the Meta Quest Link app.
 (Settings > Beta > Spatial Data over Meta Quest Link).

Check the Project Setup Tool for any project related issues.
 (Oculus > Tools > Project Setup Tool

You are using a Quest 3 or newer device.
UnityEngine.Debug:LogError (object)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager:Awake () (at ./Library/PackageCache/com.meta.xr.sdk.core@74.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:237)
Environment Depth is not supported. Please check EnvironmentDepthManager.IsSupported before enabling EnvironmentDepthManager.
Open 'Oculus -> Tools -> Project Setup Tool' to see requirements.

UnityEngine.Debug:LogError (object)
Meta.XR.EnvironmentDepth.EnvironmentDepthManager:OnEnable () (at ./Library/PackageCache/com.meta.xr.sdk.core@74.0.0/Scripts/EnvironmentDepth/EnvironmentDepthManager.cs:261)
Passthrough layer is not configured for surface projected passthrough.
UnityEngine.Debug:LogError (object)
OVRPassthroughLayer:AddSurfaceGeometry (UnityEngine.GameObject,bool) (at ./Library/PackageCache/com.meta.xr.sdk.core@74.0.0/Scripts/OVRPassthroughLayer.cs:120)
Meta.XR.BuildingBlocks.PassthroughProjectionSurfaceBuildingBlock:Start () (at ./Library/PackageCache/com.meta.xr.sdk.core@74.0.0/Scripts/BuildingBlocks/PassthroughProjectionSurfaceBuildingBlock.cs:44)

Additional Screenshots are provided below:

 

    This topic has been closed for replies.

    10 replies

    New Participant
    March 16, 2025

    Facing Same Issue

    Trying to use sample scene. In Unity 6 using V74.

    Participant
    March 17, 2025

    I can confirm that I also faced the same issue after the update to v74. It works on built and deployed apps on the headset but not on the Editor via Link. For me, it stuck on enterplaymode. But after a couple of restarts, starting and stopping the apps, etc, the Unity editor did not stuck but gave me those 3 errors related to Environment Depth disabled. I don't have any project setup tool errors. Everything is checked and enabled properly.

    I use the latest version of the Meta All-in-One SDK.

    • Unity 6000.0.42f1
    • All Meta XR SDKs = 74.0.0
    • Depth API = 72.0.0
    • Unity OpenXR Meta = 2.1.0 since I use OpenXR plugin instead of OculusXR which will be deprecated.
    New Participant
    March 17, 2025

    For me, it doesn't work on Editor or Build. I am not sure if it's related to Depth API, but the Room Mesh works, 

    Participant
    March 17, 2025

    I forgot to mention but I also don't use URP. I don't know if this matters.

    Participant
    March 17, 2025

    Hey MonCheriDels,

    According to their official GitHub, this is a known issue. This will be fixed in the future update: https://github.com/oculus-samples/Unity-DepthAPI/issues/75#issuecomment-2728947561

    New Participant
    March 17, 2025

    Greetings berkc 

    Thanks for all the infos, I guess I am quite in a bind for now. 

    New Participant
    April 5, 2025

    Same issue, but it works on XR simulator

    Participant
    April 7, 2025

    Hey MonCheriDels ,

    There is a workaround. I tested it on my current project, and it worked. I also created a fresh one, and it also worked. So, I hope this fixes the issue on your end.


    https://github.com/oculus-samples/Unity-DepthAPI/issues/72#issuecomment-2779503628

    RageAgainstThePixel
    Up and Coming
    April 23, 2025

    Same issue with PCVR builds

    avivXR
    Participant
    April 27, 2025

    Same issue🤔