Reflective Scene Manager
This class provides management of scenes and reports events.
Events
public static event Action<Scene> OnSceneLoadedEvent triggered when a scene is loaded.
public static event Action<Scene> OnSceneUnloadedEvent triggered when a scene is unloaded.
Members
public static SceneProcessor ProcessorThe
SceneProcessorobject to use.
Methods
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
Processorobject to load the specified scene.
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
Processorobject to dump the specified scene.
[RuntimeInitializeOnLoadMethod] private static void Init()It is a method that runs when the application starts.
RoomDatais obtained viaRoomManagerBase.Singletonand aSceneProcessoris created accordingly.
Last updated