![]() |
MMFeedbacks
v1.6
|
A class to load scenes using a loading screen instead of just the default API More...
Classes | |
struct | LoadingSceneEvent |
Public Types | |
enum | LoadingStatus { LoadingStatus.LoadStarted, LoadingStatus.LoadComplete, LoadingStatus.NewSceneLoaded } |
Static Public Member Functions | |
static void | LoadScene (string sceneToLoad) |
Call this static method to load a scene from anywhere More... | |
static void | LoadScene (string sceneToLoad, string loadingSceneName) |
Call this static method to load a scene from anywhere More... | |
Public Attributes | |
Text | LoadingText |
the text object where you want the loading message to be displayed More... | |
CanvasGroup | LoadingProgressBar |
the canvas group containing the progress bar More... | |
CanvasGroup | LoadingAnimation |
the canvas group containing the animation More... | |
CanvasGroup | LoadingCompleteAnimation |
the canvas group containing the animation to play when loading is complete More... | |
float | StartFadeDuration =0.2f |
the duration (in seconds) of the initial fade in More... | |
float | ProgressBarSpeed =2f |
the speed of the progress bar More... | |
float | ExitFadeDuration =0.2f |
the duration (in seconds) of the load complete fade out More... | |
float | LoadCompleteDelay =0.5f |
the delay (in seconds) before leaving the scene when complete More... | |
Static Public Attributes | |
static string | LoadingScreenSceneName ="LoadingScreen" |
The name of the scene to load while the actual target scene is loading (usually a loading screen) More... | |
Protected Member Functions | |
virtual void | Start () |
On Start(), we start loading the new level asynchronously More... | |
virtual void | Update () |
Every frame, we fill the bar smoothly according to loading progress More... | |
virtual IEnumerator | LoadAsynchronously () |
Loads the scene to load asynchronously. More... | |
virtual void | LoadingSetup () |
Sets up all visual elements, fades from black at the start More... | |
virtual void | LoadingComplete () |
Triggered when the actual loading is done, replaces the progress bar with the complete animation More... | |
Protected Attributes | |
AsyncOperation | _asyncOperation |
float | _fadeDuration = 0.5f |
float | _fillTarget =0f |
string | _loadingTextValue |
Image | _progressBarImage |
Static Protected Attributes | |
static string | _sceneToLoad = "" |
static MMTweenType | _tween |
A class to load scenes using a loading screen instead of just the default API
|
protectedvirtual |
Loads the scene to load asynchronously.
|
protectedvirtual |
Triggered when the actual loading is done, replaces the progress bar with the complete animation
|
protectedvirtual |
Sets up all visual elements, fades from black at the start
|
static |
Call this static method to load a scene from anywhere
sceneToLoad | Level name. |
|
static |
Call this static method to load a scene from anywhere
sceneToLoad | Level name. |
|
protectedvirtual |
On Start(), we start loading the new level asynchronously
|
protectedvirtual |
Every frame, we fill the bar smoothly according to loading progress
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
float MoreMountains.Tools.LoadingSceneManager.ExitFadeDuration =0.2f |
the duration (in seconds) of the load complete fade out
float MoreMountains.Tools.LoadingSceneManager.LoadCompleteDelay =0.5f |
the delay (in seconds) before leaving the scene when complete
CanvasGroup MoreMountains.Tools.LoadingSceneManager.LoadingAnimation |
the canvas group containing the animation
CanvasGroup MoreMountains.Tools.LoadingSceneManager.LoadingCompleteAnimation |
the canvas group containing the animation to play when loading is complete
CanvasGroup MoreMountains.Tools.LoadingSceneManager.LoadingProgressBar |
the canvas group containing the progress bar
|
static |
The name of the scene to load while the actual target scene is loading (usually a loading screen)
Text MoreMountains.Tools.LoadingSceneManager.LoadingText |
the text object where you want the loading message to be displayed
float MoreMountains.Tools.LoadingSceneManager.ProgressBarSpeed =2f |
the speed of the progress bar
float MoreMountains.Tools.LoadingSceneManager.StartFadeDuration =0.2f |
the duration (in seconds) of the initial fade in