/// <summary> /// Load scene. /// </summary> /// <param name="key">The key of the location of the scene to load.</param> /// <param name="loadMode">Scene load mode.</param> /// <param name="activateOnLoad">If false, the scene will load but not activate (for background loading). The SceneInstance returned has an Activate() method that can be called to do this at a later point.</param> /// <param name="priority">Async operation priority for scene loading.</param> /// <returns>The operation handle for the request.</returns> public static AsyncOperationHandle <SceneInstance> LoadSceneAsync(object key, LoadSceneMode loadMode = LoadSceneMode.Single, bool activateOnLoad = true, int priority = 100) { return(m_Addressables.LoadSceneAsync(key, loadMode, activateOnLoad, priority)); }