Neo Async Loading ScreenDocsNeo Settings
ReferenceAPI Reference

API Reference

The Blueprint nodes, the C++ headers and the console commands of the plugin, with what each one is for and where it is described.

On this page
  1. Headers of the module NeoLoadingScreen
  2. Blueprint API
  3. C++ only
  4. The presenter and core modules
  5. Console

In a game on Direct3D 12, Windows 64-bit, Neo Async Loading Screen's own thread draws the loading screen while the engine loads (While the Engine Loads).

Everything a project uses is in the module NeoLoadingScreen (add it to your Build.cs only for C++; Blueprints need nothing):

C#
PrivateDependencyModuleNames.Add("NeoLoadingScreen");

The Blueprint nodes are in the palette's category Neo Async Loading Screen. Show Loading Screen, Hide Loading Screen and the holds have the names and the pins of Neo Settings' nodes of the same name, which forward to Neo Async Loading Screen: a Blueprint moves from one to the other by replacing each node with the other plugin's node of the same name, wired the same way (a subsystem's node takes that plugin's subsystem as its Target). The Examples show them in use.

Headers of the module NeoLoadingScreen

HeaderWhat it is for
NeoLoadingScreenSubsystem.hUNeoLoadingScreenSubsystem, the loading screen of one game (below), and its Get(WorldContextObject)
NeoLoadingScreenLibrary.hUNeoLoadingScreenLibrary, the same nodes for any Blueprint, and FNeoLoadingScreenBlockingScope (C++)
NeoLoadingScreenTravelAction.hOpen Level and Server Travel behind the loading screen (async nodes with On Covered and On Failed)
NeoLoadingScreenProcess.hINeoLoadingScreenProcess: anything of the game that keeps the screen while it works, asked every frame
NeoLoadingScreenTypes.hthe phases, the kinds, the report, the status line levels and the choices of Project Settings
NeoLoadingScreenProjectSettings.hProject Settings > Plugins > Neo Async Loading Screen
NeoLoadingScreenRecipe.hUNeoLoadingScreenRecipe, a .hload recipe kept as an asset (imported from its file, never edited by hand)
NeoLoadingScreenEngineSubsystem.hthe recipe of the process: Reload Recipes, its diagnostics, the style, the player's facts
NeoLoadingScreenUserWidget.hUNeoLoadingScreenUserWidget, the base class of a UMG loading screen (Your Own Screen)
NeoLoadingScreenBackdrop.hUNeoLoadingScreenBackdrop, the screen's image with its style's life in a UMG loading screen (Your Own Screen)
NeoLoadingScreenViews.hFNeoLoadingScreenViews, the registry of native Slate views (Your Own Screen)
NeoLoadingScreenPreview.ha preview of the loading screen in a widget of its own (an options menu, an editor tool)
NeoLoadingScreenInspection.hwhat tools read: the compiled recipe, its translation file for a language, the report files and their reader, what Neo Settings is
NeoLoadingScreenBridge.hthe versioned contract Neo Settings calls by reflection (Bridge); its functions are not in the palette

The editor module NeoLoadingScreenEditor has one public header, NeoLoadingScreenSetupBridge.h: the two functions Neo Settings' Setup tab calls by reflection (Setup Tab), not in the palette either. Nothing else of the editor module is meant for a project.

Blueprint API

Blueprint nodes in the Unreal editor in four comment boxes: Travel behind the screen, Status line, Hold the screen and Your own waits.

Scroll the graph sideways.

Blueprint nodes in the editor, grouped by what a game does with them.

Neo Async Loading Screen Subsystem (game instance subsystem; not created on a dedicated server):

NodeMeaning
Show Loading Screen (Reason)shows the screen over the game, with a fade, until Hide Loading Screen; the reason is logged, never shown
Hide Loading Screenthe game's wait is over: the screen stays until its minimum time and its holds, then fades out
Add Loading Screen Hold (Holder, Reason) / Remove Loading Screen Hold (Holder)keeps the screen while Holder lives
Is Loading Screen Visible, Get Loading Phasethe screen's state (Hidden, Opening, Covering, Holding, Closing)
Set Loading Status (Status)the game's own status line under the tip
Set Loading Status Line (Line), Reset Loading Status Line, Get Loading Status Linehow much the status line says (Off, Connect, Themes, Counts, Developer outside Shipping)
Get Last Loading Reportwhat the last screen did: its map, its time, its longest gap and its cause, its diagnostics
Set Next Loading Screen Content (Title, Tip, Image), Preload Loading Contentthe next screen's content, loaded in advance
Set Next Loading Screen Tip (Key)the next screen shows the recipe's tip of this key, with its own image, video and translation (below)
On Loading Screen Visibility Changed (bVisible), On Loading Phase Changed (Phase)events

Neo Async Loading Screen Library: the same nodes for any Blueprint, from the world context (Add and Remove Loading Screen Hold take the holder, self by default).

Scroll the graph sideways.

The Blueprint form of the C++ example below: Add Loading Screen Hold at Begin Play keeps the level change's screen up until Remove Loading Screen Hold, never longer than the recipe's maximum hold.

Showing a given tip. Set Next Loading Screen Tip takes a tip's key: its own key (smoke for tip "..." { key smoke } in a recipe, or the Key of a tip in Project Settings), or its whole translation key (loading.tip.smoke, map.L_Harbor.tip.flood, loading.tip.2 for the third tip of the list, when it has no key of its own). Case does not matter. The next screen shows that tip in the player's language, with its own image and video (Recipes), instead of the recipe's pick; a map's own tip of that key wins on that map. Call it before the load: the tip's image starts loading at once, or as soon as the screen showing ends. None gives the next screen back to the recipe. A key that no tip has leaves the recipe's pick and logs HLP405. An image given to Set Next Loading Screen Content still wins over the tip's own image; of a tip given there as a text and a tip asked by its key, the later call wins.

Open Level Behind Loading Screen, Server Travel Behind Loading Screen: the screen fades in, covers, then the travel goes; On Covered just before the travel, On Failed when the travel cannot start (the engine refuses it, or, for Open Level, no map has the short name given; a Server Travel given such a name goes to the game's default map, with no On Failed). Once the level starts loading the node is done: a level that fails to load then (a package path with no map) gives no On Failed, and the engine handles it as any travel failure (the Game Instance's TravelError event, then, by default, the game's default map).

Scroll the graph sideways.

A fade before the load: Open Level Behind Loading Screen in place of Open Level.

Neo Async Loading Screen Process (interface): Should Hold Loading Screen (Out Reason).

Neo Async Loading Screen Engine Subsystem: Reload Recipes, Get Recipe Diagnostics, Get Style Id, Set Player Facts (Reduce Motion, High Contrast, Interface Size).

Neo Async Loading Screen User Widget (UMG): Get Level Name, Get Tip, Get Status, Get Image Brush, Has Image, Get Elapsed Seconds, Get Kind, Get Loading Phase, Get Progress; events On Loading Started and On Loading Finishing.

C++ only

The same nodes from C++, and a block of your own declared to the screen:

C++
#include "NeoLoadingScreenLibrary.h"

void AMySquad::BeginPlay()
{
    Super::BeginPlay();
    // The level change's screen stays up after the map load until the squad is ready (the reason goes to the log).
    UNeoLoadingScreenLibrary::AddLoadingScreenHold(this, TEXT("Spawning the squad"));
}

void AMySquad::OnSquadReady()
{
    UNeoLoadingScreenLibrary::RemoveLoadingScreenHold(this);
}

void AMyCityBuilder::BeginPlay()
{
    Super::BeginPlay();
    // The screen is still up when the new world begins play: declare the work that blocks the game thread, and the
    // screen's own thread draws the screen meanwhile (on Direct3D 12, for texts it can lay out).
    FNeoLoadingScreenBlockingScope Scope(this, TEXT("Spawning the city"));
    SpawnDistricts();
}
  • FNeoLoadingScreenBlockingScope Scope(this, TEXT("Spawning city"));: work that blocks the game thread, known in advance; while a screen shows, Neo Async Loading Screen's own thread draws it from the scope's start to its end, where that thread draws at all (Direct3D 12, outside Play In Editor, and not a screen whose texts Unreal lays out on the game thread only: Arabic, Hebrew, Thai, the scripts of India, HLP406). A Set Loading Status given such a text inside the scope shows once the scope ends. The scope covers the game thread only: the thread's frames still go through the render thread, so work the render thread has when the scope starts (the frames your game drew just before it, a shader compiled at first use) holds them until it is done (HLP419), and a full garbage collection holding Slate's resources stops them too (HLP411, HLP420). Where the thread does not draw, the block freezes the screen and the report says so (HLP415). See While the Engine Loads.
  • UNeoLoadingScreenSubsystem::Get(WorldContextObject).
  • UNeoLoadingScreenTravelAction: IsCovered, HasFailed, IsFinished, IsSeamless, GetTargetMap read an action's state (the plugin's flow alone tells the action it is covered, started or failed).
  • FNeoLoadingScreenViews::SetViewFactory, RemoveViewFactory, HasViewFactory: native views (Your Own Screen), laid out in the look's unit (1 unit = 1 pixel at 1080p) wherever they are painted; a module that names NeoLoadingScreen alone compiles one.
  • NeoLoadingScreenCreatePreviewWidget, and the inspection functions of NeoLoadingScreenInspection.h, for tools; a preview paints the kind of screen its options ask for (FNeoLoadingScreenPreviewOptions::Kind: the launch, a map load, seamless travel, a join, the game's own wait), at a frozen instant (Seconds) or at the one its Clock gives on every paint (a preview that plays without being made again). The Title you give shows only when your recipe shows the level's name (screen { level_name on }, Project Settings > Look > Show Level Name), as on a screen. To preview your own content: TipKey shows a tip of your recipe (its own key, smoke, or its whole key, loading.tip.smoke) with its image, its video and its life level, and ImageIndex one of your images (the first is 0) when the tip has none of its own; Culture shows the texts in a language that has a translation file (fr; empty: the running language), bSourceText shows them as written, never translated, bPseudoLocalize shows them accented and longer, to see the room a translation takes. The image comes in when it is loaded (a preview of an image shown before draws it at once); the FNeoLoadingScreenPreviewInfo you pass says what was drawn (the tip, the image, its focus, the video, the life level, whether the key named a tip, and bGameThreadText when a text drawn is one Unreal lays out on the game thread only). With no tip of your recipe, the life level is the screen's (Project Settings' Image Life, or a recipe's screen { life subtle }). At a status line level that says something (your recipe's, or StatusLine), the preview draws an example of the line at the instant painted (bStatusExample, on by default; Info.Status says it); bSimulate plays a simulated sequence of level changes on its clock (Info.Steps lists them), an illustration whose timing and numbers are examples. NeoLoadingScreenUpdatePreviewWidget brings a preview up to date in place with new options: the same view, its image and its video kept.

The presenter and core modules

The module NeoLoadingScreenPresenter holds the presenter's thread and the pure view. Its headers are shared between the plugin's modules; a project includes two of them, and only for a native view: NeoLoadingScreenLook.h (the view's arguments, the look and the live state) and, for a view that plays videos, NeoLoadingScreenVideo.h (OpenNeoLoadingScreenVideo, PrepareNeoLoadingScreenVideos and the video a look holds). The rest is not part of the API: nothing of the presenter's control, its hub or its testing rig is meant for a project, and it may change between versions. The module NeoLoadingScreenCore is the plugin's pure core, not part of the API either.

Console

NameWhat it does
NeoLoadingScreen.Show, NeoLoadingScreen.HideShow Loading Screen and Hide Loading Screen, from the console
NeoLoadingScreen.Reportlogs the last screen's report, the state of the screen and the recipe's diagnostics
NeoLoadingScreen.Loc.Export fr, NeoLoadingScreen.Loc.Export potin the editor: writes a language's translation file, or the template, in Config/NeoLoadingScreen/loc (Localization)
NeoLoadingScreen.Bridge.Status, NeoLoadingScreen.Marriage.Statuswhat Neo Async Loading Screen reads of Neo Settings (Using with Neo Settings)
NeoLoadingScreen.Levers.Enabled 0the screen changes nothing in the engine (Engine Levers)
NeoLoadingScreen.Music.Enabled 0no music (Music)
NeoLoadingScreen.Proxy.Enabled 0the engine's announced blocks stay on the game layer
NeoLoadingScreen.Presenter.Enabled 0the screen's own thread never draws: the game layer only
NeoLoadingScreen.Presenter.MaxRate, NeoLoadingScreen.Presenter.Prioritythe thread's rate cap and priority
NeoLoadingScreen.Presenter.ValidatedRHIsthe graphics APIs the thread draws on (D3D12)
NeoLoadingScreen.Trace.Detail 1finer Insights scopes (Diagnostics)
NeoLoadingScreen.Debug.*outside Shipping: BlockGameThread, Stall, StallAsync, SyncLoad, Later, Timecode (Diagnostics)

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