private LoadSceneAsyncNameIndexInternal ( string sceneName, int sceneBuildIndex, bool isAdditive, bool mustCompleteNextFrame ) : |
||
sceneName | string | |
sceneBuildIndex | int | |
isAdditive | bool | |
mustCompleteNextFrame | bool | |
return |
public static AsyncOperation LoadSceneAsync(string sceneName, LoadSceneParameters parameters) { return(SceneManager.LoadSceneAsyncNameIndexInternal(sceneName, -1, parameters, false)); }
public static Scene LoadScene(int sceneBuildIndex, LoadSceneParameters parameters) { SceneManager.LoadSceneAsyncNameIndexInternal(null, sceneBuildIndex, parameters, true); return(SceneManager.GetSceneAt(SceneManager.sceneCount - 1)); }
public static AsyncOperation LoadSceneAsync(int sceneBuildIndex, LoadSceneParameters parameters) { return(SceneManager.LoadSceneAsyncNameIndexInternal(null, sceneBuildIndex, parameters, false)); }
public static Scene LoadScene(string sceneName, LoadSceneParameters parameters) { SceneManager.LoadSceneAsyncNameIndexInternal(sceneName, -1, parameters, true); return(SceneManager.GetSceneAt(SceneManager.sceneCount - 1)); }
/// <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)); }
/// <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)); }
/// <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); }
/// <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); }