Project Arrhythmia
A video game developed by Vitamin Games.
Loading...
Searching...
No Matches
Systems.SceneManagement.SceneGroupManager Class Reference

Manages the loading and unloading of scene groups within the application. More...

Public Member Functions

void ClearLoadingTasks ()
 
void AddToLoadingTasks (TaskData task)
 
void AddToLoadingTasks (string _name, Task _task)
 
List< TaskDataGetLoadingTasks ()
 
async Task LoadPersistentScenes (SceneGroup group, IProgress< float > progress)
 
async Task LoadScenes (SceneGroup group, IProgress< float > progress, bool reloadDupScenes=false)
 
void UpdateVolumesAndCameras ()
 
void UpdateMouse ()
 
async Task UnloadScenes ()
 

Public Attributes

SceneGroup ActiveSceneGroup
 

Events

Action< string > OnSceneLoaded = delegate { }
 
Action< string > OnSceneUnloaded = delegate { }
 
Action OnSceneGroupLoaded = delegate { }
 

Private Attributes

List< TaskDataExtraLoadingTasks = new List<TaskData>()
 
readonly AsyncOperationHandleGroup handleGroup = new AsyncOperationHandleGroup(10)
 
List< string > PersistentScenes = new List<string>()
 

Detailed Description

Manages the loading and unloading of scene groups within the application.

This class is responsible for orchestrating the loading and unloading of groups of scenes, allowing for complex scene management strategies such as loading multiple scenes simultaneously for modular game components or features. It provides methods to load and unload scene groups by name, facilitating dynamic scene composition and transitions.

Note
Scene groups must be predefined and configured correctly for this manager to function as expected.

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