0

I'm trying to change to a different scene. To test it I've just added a change scene script to an empty object that will trigger the moment the scene is loaded.

Here is the script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LoadScene : MonoBehaviour
{
    void Start () {
        SceneManager.LoadSceneAsync(1);
    }
}

This works perfectly fine when I run it in Unity, it instantly loads the scene I want it to. However, when I deploy it onto the Oculus Quest, absolutely nothing happens. It just stays in the current scene. I've tried using LoadScene and LoadSceneAsync but it just isn't working.
Any idea why this is?

3
  • Is your scene in the build settings?
    – derHugo
    Commented Jul 30, 2020 at 11:35
  • Yeah it definitely is. It works perfectly when clicking the play button in Unity. Commented Jul 30, 2020 at 11:44
  • I figured out the problem, I've posted an answer to my own question. Commented Jul 30, 2020 at 11:48

1 Answer 1

0

I figured out the problem. The issue seems to be with the OVR Quick Preview even if I deploy the full build. It only works when I actually deploy it properly from the Build Settings.

Not the answer you're looking for? Browse other questions tagged or ask your own question.