private static void CleanUpLoadingScene(Scene targetScene) | Moves the loading scene's non-temporary objects into the target scene, then removes the loading screen. |
private static async Task CreateLoadingSceneCamera() | Spawns the loading screen prefab from Addressables into the loading scene. Does nothing on a headless server. |
private static async void DelayReleaseLoadingObject() | Android only: releases the loading screen's Addressables handle one frame after the loading scene unloads. |
private static void DestroyTempSceneObjects() | Destroys root objects in the active scene that have a TempSceneObject component. |
private static async Task FinishLoadingGameSceneInBackground(string gameSceneName) | Waits for the background game scene load to reach 90%, allows activation, waits for it to finish and warms its shaders. |
private static void FlagLoadingStarted(string loadOperationName) | Sets IsLoading to true and logs which operation started. |
private static void FlagLoadingStopped(string loadOperationName) | Sets IsLoading to false and logs which operation stopped. |
private static async Task LoadMainMenuSceneInternalAsync() | Loads the menu scene additively (or just activates it if already loaded), updating LoadProgress, then warms its shaders. |
private static async Task LoadSceneAsync(string sceneName, LoadSceneMode mode) | Loads a scene by name in the given mode and updates LoadProgress until it's done. |
private static void MoveObjectsToTargetScene(Scene sourceScene, Scene targetScene, bool isForcingAllObjects) | Moves root objects from one scene to another, skipping TempSceneObject ones unless forced. |
private static void OnLocalPlayerSet(PlayerController player) | Hooked to PlayerController.LocalPlayerSet during a game load. Removes the loading screen once the local player exists. |
private static void RemoveLoadingScreen() | Unloads the loading scene, destroys temporary objects, clears IsLoading and completes the loading task. |
private static void StartLoadingGameSceneInBackground(string sceneName) | Starts an additive load of the game scene with activation held back until FinishLoadingGameSceneInBackground. |
private static void SwitchFromMenuToGameScene() | Makes the game scene active and sets NetworkSceneManager.Current to the NetworkScene found on its root objects. |
private static bool TryGetLoadingScene(out Scene scene) | Finds the loading scene, from the cached value or by name. |
private static bool TryGetMenuScene(out Scene scene) | Finds the main menu scene, from the cached value or by the name in MenuSettings. |
private static async Task UnloadInitialActiveSceneInEditor(Scene originalActiveScene) | Editor only: unloads a game scene that was open in the editor before play started. |
private static void UnloadLoadingScene() | Starts unloading the loading scene and clears the cached handle. |
private static async Task UnloadMainMenuScene() | Tells VrMainMenu to prepare, then unloads the main menu scene if it's loaded. |
private static async Task UnloadRegistrationSceneAsync() | Unloads the registration scene if it's loaded. |
private static async Task WarmUpSceneShaders(Scene scene) | Runs Warm on every ShaderVariantWarmer found on the scene's root objects. |