I encountered a problem when using the SceneManager to load other scenes (synchronously or not, additive or not).
I have a first scene containing my camera and other stuff. And another scene containing other 3D models; some are heavy (you can try this one https://sketchfab.com/3d-models/st-pancras-new-church-crypt-85c68a9125f946af8f5102bb426e2f86 but I have other models resulting the same thing).
When I add a script to the first scene to dynamically load the second one, everything is fine in Unity or in WebGL; but when I click on the headset to go in XR, everything is black in the headset. If I go back on the browser, the scene is OK.
The problem does not appear when calling the function, but I tracked down the problem to the use of it.
I think these steps will reproduce the bug :
1 - create a new project
2 - import WebXR
3 - Download a model (like the one from sketchfab)
4 - create anotehr scene with only the model in it
5 - create a script which call SceneManager.LoadScene with the other scene, and add it to an object in the Desert scene
6 - Add the desert scene and the other scene to the build
7 - Build
8 - Open in browser and go in XR -> on the headset, nothing displayed
I tried on Firefox and Chrome
I have an Oculus Quest using Link
I am on Unity 2019.3.10
Hello,
I encountered a problem when using the SceneManager to load other scenes (synchronously or not, additive or not).
I have a first scene containing my camera and other stuff. And another scene containing other 3D models; some are heavy (you can try this one https://sketchfab.com/3d-models/st-pancras-new-church-crypt-85c68a9125f946af8f5102bb426e2f86 but I have other models resulting the same thing). When I add a script to the first scene to dynamically load the second one, everything is fine in Unity or in WebGL; but when I click on the headset to go in XR, everything is black in the headset. If I go back on the browser, the scene is OK. The problem does not appear when calling the function, but I tracked down the problem to the use of it.
I think these steps will reproduce the bug : 1 - create a new project 2 - import WebXR 3 - Download a model (like the one from sketchfab) 4 - create anotehr scene with only the model in it 5 - create a script which call SceneManager.LoadScene with the other scene, and add it to an object in the Desert scene 6 - Add the desert scene and the other scene to the build 7 - Build 8 - Open in browser and go in XR -> on the headset, nothing displayed
I tried on Firefox and Chrome I have an Oculus Quest using Link I am on Unity 2019.3.10
Hope someone could help
Regards
Nicolas