Skip to main content
August 7, 2019

Proper way to load next scene in unity VR

Whenever I try to load the next scene, the game stutters or freezes for 1 second.   This is in Oculus Quest.   This freezing for 1 second is pretty bad for the eyes in VR.
I've been using this function to go to next scene

SceneManager.LoadScene(1);

Is there a better way to load the next scene?   I have 3 scenes total so far and switching between them sometimes freezes.   I wonder if it is a memory issue and I need to preload my scenes into memory first.
    This topic has been closed for replies.

    2 replies

    August 7, 2019
    I think SceneManager.LoadSceneAsync fixed it.
    Participant
    November 18, 2019
    I tried using SceneManager.LoadSceneAsync and my app still crashes to Home. Scene switching worked fine on the Oculus Go, but lately on the Quest it does not. Even with the latest Oculus Integration 1.42, and Unity 2019.2.12f1, I am still seeing this behavior.
    I have made a simple project of two scenes with nothing in them but an OVRCameraRig, a canvas and a button to change the scene and the app just crashes. Is anyone else seeing this?