Transitions & Scene Loading
Scene Load with Fade
// Saves -> Fades out -> Loads scene -> Restores data -> Fades in
await SaveManager.LoadSceneWithFade("Level2");
// Custom fade duration
await SaveManager.LoadSceneWithFade("Boss", duration: 1.0f);Load Game with Fade
// Load save slot with smooth transition
await SaveManager.LoadWithFade(slot: 1, duration: 0.5f);Custom Transitions
public class MyCustomTransition : ILoadTransition
{
public async Task PlayInAsync()
{
// Show your custom loading transition
await Task.Delay(500);
}
public async Task PlayOutAsync()
{
// Hide your custom loading transition
await Task.Delay(500);
}
}Showcase Fade Modes
Last updated