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
Exemplo n.º 1
0
 public static AsyncOperation LoadSceneAsync(string sceneName, LoadSceneParameters parameters)
 {
     return(SceneManager.LoadSceneAsyncNameIndexInternal(sceneName, -1, parameters, false));
 }
Exemplo n.º 2
0
 public static Scene LoadScene(int sceneBuildIndex, LoadSceneParameters parameters)
 {
     SceneManager.LoadSceneAsyncNameIndexInternal(null, sceneBuildIndex, parameters, true);
     return(SceneManager.GetSceneAt(SceneManager.sceneCount - 1));
 }
Exemplo n.º 3
0
 public static AsyncOperation LoadSceneAsync(int sceneBuildIndex, LoadSceneParameters parameters)
 {
     return(SceneManager.LoadSceneAsyncNameIndexInternal(null, sceneBuildIndex, parameters, false));
 }
Exemplo n.º 4
0
 public static Scene LoadScene(string sceneName, LoadSceneParameters parameters)
 {
     SceneManager.LoadSceneAsyncNameIndexInternal(sceneName, -1, parameters, true);
     return(SceneManager.GetSceneAt(SceneManager.sceneCount - 1));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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);
 }
Exemplo 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);
 }