NeoSettingsDocsNeo Async Loading Screen
Menus and screensLoading screens with Neo Async Loading Screen

Loading screens with Neo Async Loading Screen

Neo Settings draws no loading screen. Neo Async Loading Screen is a separate plugin that draws them, and the two work together when both are installed: the menus travel behind its screen and the loading nodes below drive it. Without it, the level changes your menus start go through a plain fade to black, and nothing else changes. This page says what Neo Settings does on its side; what Neo Async Loading Screen itself offers is in its own documentation.

On this page
  1. Without Neo Async Loading Screen
  2. With Neo Async Loading Screen
  3. From Blueprint and C++

Without Neo Async Loading Screen

The fade. The travels the plugin's menus start go through a fade to black: Play with a Play Map, an open_level or restart item, Main Menu in the pause menu and Leave Game.

PhaseDurationWhat happens
Out180 ms (Reduce Motion: 100 ms, a plain fade)The game darkens; the pause menu and the menu items are refused
CoveringThe loadThe screen stays black, input refused as during Out; the travel starts once it is fully black, then the level loads; the screens the travel closes go at once, under the black
In240 ms (Reduce Motion: 100 ms)Once the new map has begun play and one frame of it is drawn, it appears; the main menu opening under it takes the input at once

The fade is pure black: no style, no text, no tip, no image, no activity mark. It follows real time, and player 1's Reduce Motion setting. If the travel fails (or the game leaves after a network failure), the fade clears at once and the menus land in the main menu with a toast saying why; if no map change starts within 10 s of the call (a ReturnToMainMenu of yours that waits on its session), or the new map does not begin play within 10 s of its load, the fade clears anyway.

Nothing else fades: an Open Level from your Blueprints or C++, a client following its server, the engine's return to the main menu after a lost connection. The clients of a listen host see nothing of the host's fade.

The loading nodes do nothing. Show Loading Screen, Hide Loading Screen, Add Loading Screen Hold and Remove Loading Screen Hold show nothing; Is Loading Screen Visible is false, Get Loading Phase is Hidden, On Loading Screen Visibility Changed never fires. The first call of Show Loading Screen or of a hold writes HSP308 once (information), and the Setup checklist lists it after a play session. Keep your calls: the same game works with Neo Async Loading Screen added later.

The log says what the fade does (LogNeoSettings): Travel fade: out <map>, Travel fade: in <map>, and Travel fade: cleared failure|timeout|end.

With Neo Async Loading Screen

When Neo Async Loading Screen is enabled and shows the loading screens, the log says once "Loading screen: provided by Neo Loading Screen" (the plugin's former name, as Neo Settings 1.0.0 prints it), and:

  • Play, Return to Main Menu, Leave Game and the open_level and restart items travel behind its screen, never behind the fade; the main menu fades in under its fade-out, and the pause menu and the FPS counter wait until it is gone.
  • Show and Hide Loading Screen, the holds, Is Loading Screen Visible, Get Loading Phase and On Loading Screen Visibility Changed drive and follow its screen. The phase is Hidden, Opening, Covering (the load), Holding (the map plays, the screen waits) or Closing (the main menu opens under its fade-out).
  • Neo Settings hands it your style, so that its screen can look like your menus: the palette (with the High Contrast variant and your Palette Overrides), the fonts, the screen_open and screen_close motions, the text size, Reduce Motion and High Contrast. The screen's own layout is Neo Async Loading Screen's.
  • Neo Settings also hands it the loading blocks and the level names of your recipes: images, tips, minimum and maximum times, holds, and strings { level_Lvl_Harbor "The Old Harbor" } (Recipes).

In the Setup tab, one quiet line under the menus says it: Loading screen · Neo Loading Screen ↗ (Neo Settings 1.0.0 shows the plugin's former name in this line). Without the plugin, its name opens this page, and the preview says that loading screens come with Neo Async Loading Screen when you point at the line. With it, pointing at the line shows its loading screen in the preview; while its screens are off, Turn on turns them on (Neo Async Loading Screen's own setting, with its own Undo); while it draws them, the line reads by Neo Loading Screen, Open opens its setup and ▾ shows its own cards. Add both turns on the two menus only. Try it plays with the main and pause menus; the loading screens then follow Neo Async Loading Screen's own settings.

If the two plugins are not made for each other, the log says HSP306, and the Setup checklist HSP217. What another plugin may rely on: Compatibility.

From Blueprint and C++

The nodes are in Neo Settings › Loading Screen (Neo Settings Library and Neo Menu Subsystem); with Neo Async Loading Screen they drive its screen, without it they do nothing (above).

NodeDoes
Show Loading Screen, Hide Loading ScreenCovers a wait of your own (the reason goes to the log, never to the screen)
Add Loading Screen Hold, Remove Loading Screen HoldKeeps the screen up after a map load until your game is ready (Holder: Self; a destroyed holder releases its own)
Is Loading Screen Visible, On Loading Screen Visibility ChangedTell your HUD when to hide
Get Loading PhaseHidden, Opening, Covering, Holding, Closing

In C++, GetLoadingScreenPhase() gives that ENeoSettingsLoadingPhase: prefer it to a cast of GetLoadingPhase(), which passes on the number as the screen gives it (0 to 4; GetLoadingScreenPhase() reads any other as Covering). UNeoMenuSubsystem::IsTravelFadeVisible() (C++ only) is true while the fade to black is up (out, covering the load or coming back in): hide your HUD with it too. The fade is not a loading screen: it never changes the phase nor fires the visibility event.

Your own holds, released by the same object:

C++
#include "NeoSettingsLibrary.h"

void OnSquadSpawnStarted(UObject* Spawner)
{
    // After the map load, the Neo Async Loading Screen stays until the squad is ready (without that plugin, the
    // hold does nothing).
    UNeoSettingsLibrary::AddLoadingScreenHold(Spawner, TEXT("Spawning the squad"));
}

void OnSquadSpawnFinished(UObject* Spawner)
{
    UNeoSettingsLibrary::RemoveLoadingScreenHold(Spawner);
}

Your own waits, covered with Show then Hide Loading Screen:

C++
#include "NeoSettingsLibrary.h"

void CoverWorldGeneration(const UObject* WorldContext, bool bGenerating)
{
    // Covers your own wait with the Neo Async Loading Screen (the reason goes to the log, never to the screen;
    // without that plugin, nothing is shown).
    if (bGenerating)
    {
        UNeoSettingsLibrary::ShowLoadingScreen(WorldContext, INVTEXT("Generating the world"));
    }
    else
    {
        UNeoSettingsLibrary::HideLoadingScreen(WorldContext);
    }
}

Something not as described? Every code the editor shows has its own entry in Troubleshooting.