Loading

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.

SceneTransitionManager

Loading Transition

Dictionary of transitions. Used by SceneLoader and SceneLoaderAddressable but you can also use it directly.

SceneTransition

An abstract class you can implement add to SceneTransitionManager.

csharp
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 } }

SceneTransition.LoadingScreenToggleEvent

This event is used to fade LoadingScreen.

ParameterTypeDescription
First parameterboolTrue means fade-in, false means fade-out.
Second parameterfloatDuration of fade.

Settings

Theme

Light

Contrast

Material

Dark

Dim

Material Dark

System

Sidebar(Light & Contrast only)

Light
Dark

Font Family

DM Sans

Wix

Inclusive Sans

AR One Sans

Direction

LTR
RTL