SceneManager
static class in UnityEngine.SceneManagement · UnityEngine.CoreModule
In Tassix
Scenes as Unity manages them: one active scene, others loaded additively, and the DontDestroyOnLoad scene. Scene files are the engine's JSON scenes; the build list (sceneCountInBuildSettings, buildIndex) comes from build_settings.json next to the first scene. LoadScene applies at the end of the frame; LoadSceneAsync completes a frame later (or when allowSceneActivation turns true).
Properties 3
static int loadedSceneCount { get; }static int sceneCount { get; }static int sceneCountInBuildSettings { get; }Methods 13
static Scene CreateScene(string sceneName)static Scene CreateScene(string sceneName, CreateSceneParameters parameters)A new, empty scene, loaded at once (additively).
static Scene GetActiveScene()static Scene GetSceneAt(int index)static Scene GetSceneByBuildIndex(int buildIndex)static Scene GetSceneByName(string name)static Scene GetSceneByPath(string scenePath)static void LoadScene(string sceneName)static void LoadScene(string sceneName, LoadSceneMode mode)static Scene LoadScene(string sceneName, LoadSceneParameters parameters)static void LoadScene(int sceneBuildIndex)static void LoadScene(int sceneBuildIndex, LoadSceneMode mode)static Scene LoadScene(int sceneBuildIndex, LoadSceneParameters parameters)static AsyncOperation? LoadSceneAsync(string sceneName)static AsyncOperation? LoadSceneAsync(string sceneName, LoadSceneMode mode)static AsyncOperation? LoadSceneAsync(string sceneName, LoadSceneParameters parameters)static AsyncOperation? LoadSceneAsync(int sceneBuildIndex)static AsyncOperation? LoadSceneAsync(int sceneBuildIndex, LoadSceneMode mode)static AsyncOperation? LoadSceneAsync(int sceneBuildIndex, LoadSceneParameters parameters)static void MoveGameObjectToScene(GameObject go, Scene scene)static bool SetActiveScene(Scene scene)static bool UnloadScene(Scene scene)static AsyncOperation? UnloadSceneAsync(string sceneName)static AsyncOperation? UnloadSceneAsync(int sceneBuildIndex)static AsyncOperation? UnloadSceneAsync(Scene scene)Events 3
static event UnityAction<Scene, Scene>? activeSceneChangedstatic event UnityAction<Scene, LoadSceneMode>? sceneLoadedstatic event UnityAction<Scene>? sceneUnloadedNot in Tassix yet 2
(constructor) MoveGameObjectsToScene
Checked against Unity
Conformance scenarios that exercise it, recorded in Unity and compared event by event.