I did some tests with the spatial mapping example in Unity. The creation of the texture at the end of the scan failed.
The function ApplyTexture() returns a texture size of 0 x 0.
After some tests, it appears that the first test can be successful. In this case, the texture has a size of 4096 x 4096. But this success happens 1 time for 20 tests.
ZEDfu is working fine all the time.
Windows 11, NVidia 3070 Laptop, ZED SDK 4.0.6 with CUDA 12.1 with Unity 2021.3.18, 2021.3.30, 2022.3.9.
Windows 11, NVidia 3070 Laptop, ZED SDK 4.0.6 with CUDA 11.8 with the same results.
Tests with ZED M USB, ZED X and ZED X M (Streaming from ZED Box).