Interface IModuleSceneCallbacks
Define this module as one that needs scene management callbacks
Namespace: Unity.Labs.ModuleLoader
Syntax
public interface IModuleSceneCallbacks : IModule
Methods
OnActiveSceneChanged(Scene, Scene)
Called when the active scene changes
Declaration
void OnActiveSceneChanged(Scene oldScene, Scene newScene)
Parameters
| Type | Name | Description |
|---|---|---|
| Scene | oldScene | The previously active scene |
| Scene | newScene | The scene that will become active |
OnSceneLoaded(Scene, LoadSceneMode)
Called after the scene is loaded, after MonoBehaviour Awake
Declaration
void OnSceneLoaded(Scene scene, LoadSceneMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| Scene | scene | The scene that was loaded |
| LoadSceneMode | mode | The mode used to load the scene |
OnSceneUnloaded(Scene)
Called after the scene is unloaded
Declaration
void OnSceneUnloaded(Scene scene)
Parameters
| Type | Name | Description |
|---|---|---|
| Scene | scene | The scene that was unloaded |