I am working on a main menu, but I am having a problem where the game scene takes too long to load so I want to use async to load the scene on start. From there when the user selects the ui button to take them to the game scene i want to set syncOperation.allowSceneActivation to true. Here is the code public class LoadScenes : MonoBehaviour { void Start() { StartCoroutine(LoadScene()); } IEnumerator LoadScene() { yield return null; AsyncOperation asyncOperation = SceneManager.LoadSceneAsync("Forest Map"); asyncOperation.allowSceneActivation = false; while (!asyncOperation.isDone) { if (asyncOperation.progress >= 0.9f) { asyncOperation.allowSceneActivation = true; } yield return null; } } }