Class LoadingScreen
Singleton that load a scene while showing a window.
Inheritance
Object
Component
Behaviour
MonoBehaviour
LoadingScreen
Inherited Members
Namespace: GGL.UI
Assembly: GGL.dll
Syntax
[AddComponentMenu("GG-Library/Singletons/Loading Screen")]
[HelpURL("https://ggl.yoannhaffner.com/articles/ui.html#loading-screen")]
public class LoadingScreen : SingletonBehaviour<LoadingScreen>
Properties
| Edit this page View SourceOnLoadProgress
Declaration
public static UnityEvent<float> OnLoadProgress { get; }
Property Value
Type | Description |
---|---|
UnityEvent<float> | Event raised each frame during load. Contains progression in range [0,1] |
Processes
Declaration
public static PriorityQueue<IEnumerator, int> Processes { get; }
Property Value
Type | Description |
---|---|
PriorityQueue<IEnumerator, int> | Singleton that load a scene while showing a window. |
Methods
| Edit this page View SourceLoad(string)
Loads a new scene after fading on the canvas
Declaration
public static void Load(string sceneName)
Parameters
Type | Name | Description |
---|---|---|
string | sceneName | Scene to be loaded |
Events
| Edit this page View SourceOnLoadCompleted
Declaration
public static event Action OnLoadCompleted
Event Type
Type | Description |
---|---|
Action | Event raised each when the window is finally closed. |