UnloadSceneNameIndexInternal() private method

private UnloadSceneNameIndexInternal ( string sceneName, int sceneBuildIndex, bool immediately, bool &outSuccess ) : AsyncOperation
sceneName string
sceneBuildIndex int
immediately bool
outSuccess bool
return UnityEngine.AsyncOperation
Esempio n. 1
0
        public static bool UnloadScene(string sceneName)
        {
            bool result;

            SceneManager.UnloadSceneNameIndexInternal(sceneName, -1, true, UnloadSceneOptions.None, out result);
            return(result);
        }
Esempio n. 2
0
        public static bool UnloadScene(int sceneBuildIndex)
        {
            bool result;

            SceneManager.UnloadSceneNameIndexInternal("", sceneBuildIndex, true, UnloadSceneOptions.None, out result);
            return(result);
        }
Esempio n. 3
0
        public static bool UnloadScene(Scene scene)
        {
            bool result;

            SceneManager.UnloadSceneNameIndexInternal("", scene.buildIndex, true, out result);
            return(result);
        }
Esempio n. 4
0
        public static AsyncOperation UnloadSceneAsync(string sceneName, UnloadSceneOptions options)
        {
            bool flag;

            return(SceneManager.UnloadSceneNameIndexInternal(sceneName, -1, false, options, out flag));
        }
Esempio n. 5
0
        public static AsyncOperation UnloadSceneAsync(int sceneBuildIndex, UnloadSceneOptions options)
        {
            bool flag;

            return(SceneManager.UnloadSceneNameIndexInternal("", sceneBuildIndex, false, options, out flag));
        }
Esempio n. 6
0
 /// <summary>
 ///   <para>Unloads all GameObjects associated with the given scene.</para>
 /// </summary>
 /// <param name="sceneBuildIndex">Index of the scene in the Build Settings to unload.</param>
 /// <param name="sceneName">Name of the scene to unload.</param>
 /// <param name="scene">Scene to unload.</param>
 /// <returns>
 ///   <para>Returns true if the scene is unloaded.</para>
 /// </returns>
 public static bool UnloadScene(string sceneName)
 {
     return(SceneManager.UnloadSceneNameIndexInternal(sceneName, -1));
 }
Esempio n. 7
0
 /// <summary>
 ///   <para>Unloads all GameObjects associated with the given scene.</para>
 /// </summary>
 /// <param name="sceneBuildIndex">Index of the scene in the Build Settings to unload.</param>
 /// <param name="sceneName">Name of the scene to unload.</param>
 /// <param name="scene">Scene to unload.</param>
 /// <returns>
 ///   <para>Returns true if the scene is unloaded.</para>
 /// </returns>
 public static bool UnloadScene(int sceneBuildIndex)
 {
     return(SceneManager.UnloadSceneNameIndexInternal(string.Empty, sceneBuildIndex));
 }
Esempio n. 8
0
        public static AsyncOperation UnloadSceneAsync(Scene scene)
        {
            bool flag;

            return(SceneManager.UnloadSceneNameIndexInternal("", scene.buildIndex, false, out flag));
        }