10-01-2019 04:30 AM
SceneManager.LoadSceneAsync(1, LoadSceneMode.Additive);
if I use LoadSceneMode.Single
redirecting to the oculus home page.
12-29-2019 06:37 PM
02-21-2020 09:16 AM
05-28-2020 12:39 PM
AsyncOperation asyncOperation;private int sceneLoadingIndex;private bool finishLoadingScene;private bool loadingScene;private void Update(){if (Input.GetKeyDown(KeyCode.Space))LoadLevel(1);if(loadingScene){actualTime += Time.deltaTime;if(actualTime >= changeTime){asyncOperation.allowSceneActivation = true;loadingScene = false;}}}public void LoadLevel(int sceneIndex){sceneLoadingIndex = sceneIndex;StartCoroutine(LoadSceneProgress());loadingScene = true;}IEnumerator LoadSceneProgress(){yield return null;asyncOperation = SceneManager.LoadSceneAsync(sceneLoadingIndex);asyncOperation.allowSceneActivation = false;while (!asyncOperation.isDone && !finishLoadingScene){Debug.Log("Loading " + asyncOperation.progress);if (asyncOperation.progress >= 0.9f)finishLoadingScene = true;yield return null;}}
03-16-2021 12:01 AM
Did your approach work for you? I'm having the same issue