Forum Discussion
MonCheriDels
11 months agoExplorer
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:
10 Replies
Replies have been turned off for this discussion
- avin.mahajanStart Member
Facing Same Issue
Trying to use sample scene. In Unity 6 using V74.
- berkcExplorer
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.
- MonCheriDelsExplorer
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,
- berkcExplorer
I forgot to mention but I also don't use URP. I don't know if this matters.
- berkcExplorer
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
- MonCheriDelsExplorer
Greetings berkc
Thanks for all the infos, I guess I am quite in a bind for now.
- andaoer9190Honored Guest
Same issue, but it works on XR simulator
- berkcExplorer
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 - RageAgainstThePixelMHCP Member
Same issue with PCVR builds
- avivXRStart Partner
Same issue🤔
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 month ago