cancel
Showing results for 
Search instead for 
Did you mean: 

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

MonCheriDels
Explorer

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:

MonCheriDels_0-1742019627553.pngMonCheriDels_1-1742019662099.png

 

10 REPLIES 10

avin.mahajan
Honored Guest

Facing Same Issue

avinmahajan_0-1742099448158.png

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

berkc
Explorer

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.

MonCheriDels
Explorer

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, 

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

berkc
Explorer

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

Greetings @berkc 

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

andaoer9190
Honored Guest

Same issue, but it works on XR simulator

berkc
Explorer

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

Same issue with PCVR builds