LoadSceneAsyncNameIndexInternal() private method

private LoadSceneAsyncNameIndexInternal ( string sceneName, int sceneBuildIndex, bool isAdditive, bool mustCompleteNextFrame ) : AsyncOperation
sceneName string
sceneBuildIndex int
isAdditive bool
mustCompleteNextFrame bool
return UnityEngine.AsyncOperation
Esempio n. 1
0
 public static AsyncOperation LoadSceneAsync(string sceneName, LoadSceneParameters parameters)
 {
     return(SceneManager.LoadSceneAsyncNameIndexInternal(sceneName, -1, parameters, false));
 }
Esempio n. 2
0
 public static Scene LoadScene(int sceneBuildIndex, LoadSceneParameters parameters)
 {
     SceneManager.LoadSceneAsyncNameIndexInternal(null, sceneBuildIndex, parameters, true);
     return(SceneManager.GetSceneAt(SceneManager.sceneCount - 1));
 }
Esempio n. 3
0
 public static AsyncOperation LoadSceneAsync(int sceneBuildIndex, LoadSceneParameters parameters)
 {
     return(SceneManager.LoadSceneAsyncNameIndexInternal(null, sceneBuildIndex, parameters, false));
 }
Esempio n. 4
0
 public static Scene LoadScene(string sceneName, LoadSceneParameters parameters)
 {
     SceneManager.LoadSceneAsyncNameIndexInternal(sceneName, -1, parameters, true);
     return(SceneManager.GetSceneAt(SceneManager.sceneCount - 1));
 }
Esempio n. 5
0
 /// <summary>
 ///   <para>Loads the scene asynchronously in the background.</para>
 /// </summary>
 /// <param name="sceneName">Name of the scene to load.</param>
 /// <param name="sceneBuildIndex">Index of the scene in the Build Settings to load.</param>
 /// <param name="mode">If LoadSceneMode.Single then all current scenes will be unloaded before loading.</param>
 public static AsyncOperation LoadSceneAsync(int sceneBuildIndex, [DefaultValue("LoadSceneMode.Single")] LoadSceneMode mode)
 {
     return(SceneManager.LoadSceneAsyncNameIndexInternal((string)null, sceneBuildIndex, mode == LoadSceneMode.Additive, false));
 }
Esempio n. 6
0
 /// <summary>
 ///   <para>Loads the scene asynchronously in the background.</para>
 /// </summary>
 /// <param name="sceneName">Name of the scene to load.</param>
 /// <param name="sceneBuildIndex">Index of the scene in the Build Settings to load.</param>
 /// <param name="mode">If LoadSceneMode.Single then all current scenes will be unloaded before loading.</param>
 public static AsyncOperation LoadSceneAsync(string sceneName, [DefaultValue("LoadSceneMode.Single")] LoadSceneMode mode)
 {
     return(SceneManager.LoadSceneAsyncNameIndexInternal(sceneName, -1, mode == LoadSceneMode.Additive, false));
 }
Esempio n. 7
0
 /// <summary>
 ///   <para>Loads the scene by its name or index in Build Settings.</para>
 /// </summary>
 /// <param name="sceneName">Name of the scene to load.</param>
 /// <param name="sceneBuildIndex">Index of the scene in the Build Settings to load.</param>
 /// <param name="mode">Allows you to specify whether or not to load the scene additively. See SceneManagement.LoadSceneMode for more information about the options.</param>
 public static void LoadScene(int sceneBuildIndex, [DefaultValue("LoadSceneMode.Single")] LoadSceneMode mode)
 {
     SceneManager.LoadSceneAsyncNameIndexInternal((string)null, sceneBuildIndex, mode == LoadSceneMode.Additive, true);
 }
Esempio n. 8
0
 /// <summary>
 ///   <para>Loads the scene by its name or index in Build Settings.</para>
 /// </summary>
 /// <param name="sceneName">Name of the scene to load.</param>
 /// <param name="sceneBuildIndex">Index of the scene in the Build Settings to load.</param>
 /// <param name="mode">Allows you to specify whether or not to load the scene additively. See SceneManagement.LoadSceneMode for more information about the options.</param>
 public static void LoadScene(string sceneName, [DefaultValue("LoadSceneMode.Single")] LoadSceneMode mode)
 {
     SceneManager.LoadSceneAsyncNameIndexInternal(sceneName, -1, mode == LoadSceneMode.Additive, true);
 }