03-14-2025 11:21 PM
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:
03-15-2025 09:31 PM
Facing Same Issue
Trying to use sample scene. In Unity 6 using V74.
03-17-2025 07:21 AM - edited 03-17-2025 07:25 AM
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.
03-17-2025 07:26 AM
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,
03-17-2025 07:36 AM
I forgot to mention but I also don't use URP. I don't know if this matters.
03-17-2025 09:08 AM
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
03-17-2025 09:34 AM
Greetings @berkc
Thanks for all the infos, I guess I am quite in a bind for now.
3 weeks ago
Same issue, but it works on XR simulator
3 weeks ago
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
Wednesday
Same issue with PCVR builds