I have developed a simple app for HoloLens 2 using Unity 2019.4.10f1 and the Microsoft.MixedReality.Toolkit.Unity.Foundation.2.5.3.unitypackage.
This app only contains two scenes and a 3D model (a cube and a sphere) per scene. To **change between scenes** I used the code:
UnityEngine.SceneManagement.SceneManager.LoadScene(1);
I also tried with:
UnityEngine.SceneManagement.SceneManager.LoadSceneAsync(1, LoadSceneMode.Single);
Everything works fine in the editor, but when compiling to the HoloLens2 and changing the scene, the app crashes: a **white arc appears from the device and goes down to the floor**, and the user can't interact anymore with the scene objects. I tried to change between scenes with buttons or, alternatively, just when some time has passed, but the problem persists.
Therefore, it seems to be a bug in the scene changer code per se.
Anybody could help me with this?
Thank you.
↧