
The LoadingView is a simple component. It works alongside the SceneTransitionManager, which can be extended with custom transitions. You can refer to the demo game samples to see it in action.

Dictionary of transitions. Used by SceneLoader and SceneLoaderAddressable but you can also use it directly.
An abstract class you can implement add to SceneTransitionManager.
public class SceneLoadTransitionFade : SceneTransition
{
public float _fadeInDuration = 0.5f;
public float _fadeOutDuration = 1f; // Longer because game lags when loading scene
// Delay before scene loading starts
public override float GetStartDelay()
{
return _fadeInDuration + 0.2f; // add some duration to make sure fade is complete before scene loading starts
}
public override void FadeIn()
{
SceneTransition.LoadingScreenToggleEvent?.Invoke(true, _fadeInDuration); // fade in, fade duration
}
public override void FadeOut()
{
SceneTransition.LoadingScreenToggleEvent?.Invoke(false, _fadeOutDuration); // fade out, fade duration
}
}This event is used to fade LoadingScreen.
| Parameter | Type | Description |
|---|---|---|
| First parameter | bool | True means fade-in, false means fade-out. |
| Second parameter | float | Duration of fade. |
Settings
Theme
Light
Contrast
Material
Dark
Dim
Material Dark
System
Sidebar(Light & Contrast only)
Font Family
DM Sans
Wix
Inclusive Sans
AR One Sans
Direction