CompositeSceneLoader
is a component designed to load multiple scenes in a sequential order. This component asynchronously loads a series of specified scenes and triggers an event once all scenes are loaded.
- Sequential Scene Loading:
CompositeSceneLoader
loads scenes set in the_sceneLoaders
array in the specified order. - Load Completion Event: An
_onLoaded
event is triggered after all scenes have been loaded. - Load Progress Tracking: The
PercentComplete
property allows tracking the current progress of the scene loading process.
Name | Description |
---|---|
_sceneLoaders |
Sets the list of scenes to be loaded. |
_onLoaded |
The event that is triggered after all scenes have been loaded. |
IsLoaded |
Indicates whether all scenes have been loaded or not. |
PercentComplete |
Returns the current progress of the scene loading process as a percentage. |
- There are no public methods.
CompositeSceneLoader
serves as a powerful tool for efficient scene management, particularly in large-scale applications or games. It simplifies the management of multiple scenes for developers, enhancing the user experience.