PixelCrushers.SceneNotifier Class Reference

Service to notify subscribers when a scene is being unloaded. More...

Public Member Functions

delegate void UnloadSceneDelegate (int sceneIndex)
 

Static Public Member Functions

static void NotifyWillUnloadScene (int sceneIndex)
 Notifies all subscribers that the scene with the specified index will be unloaded.
 

Events

static UnloadSceneDelegate willUnloadScene = delegate { }
 Invoked by NotifyWillUnloadScene(sceneIndex), which should be called before unloading a scene.
 

Detailed Description

Service to notify subscribers when a scene is being unloaded.

Member Function Documentation

◆ NotifyWillUnloadScene()

static void PixelCrushers.SceneNotifier.NotifyWillUnloadScene ( int  sceneIndex)
inlinestatic

Notifies all subscribers that the scene with the specified index will be unloaded.

Parameters
sceneIndexScene index in build settings.

◆ UnloadSceneDelegate()

delegate void PixelCrushers.SceneNotifier.UnloadSceneDelegate ( int  sceneIndex)

Event Documentation

◆ willUnloadScene

UnloadSceneDelegate PixelCrushers.SceneNotifier.willUnloadScene = delegate { }
static

Invoked by NotifyWillUnloadScene(sceneIndex), which should be called before unloading a scene.


The documentation for this class was generated from the following file: