Reflective Scene Manager

This class provides management of scenes and reports events.

Events

  • public static event Action<Scene> OnSceneLoaded

    • Event triggered when a scene is loaded.

  • public static event Action<Scene> OnSceneUnloaded

    • Event triggered when a scene is unloaded.

Members

  • public static SceneProcessor Processor

    • The SceneProcessor object to use.

Methods

  1. public static void LoadScene(string sceneName,
    Action<Scene> onCompleted = null)
    • Parameters:

      • sceneName: The name of the scene to load.

      • onCompleted: The action that will be called when the installation process is completed (defaults to null).

    • Uses the Processor object to load the specified scene.

  2. public static void UnLoadScene(Scene scene,
    Action<Scene> onCompleted = null)
    • Parameters:

      • scene: The stage to be evacuated.

      • onCompleted: The action that will be called when the dump is complete (defaults to null).

    • Uses the Processor object to dump the specified scene.

  3. [RuntimeInitializeOnLoadMethod] private static void Init()
    • It is a method that runs when the application starts. RoomData is obtained via RoomManagerBase.Singleton and a SceneProcessor is created accordingly.

Last updated