Orion Orion Loading ScreenManual
中文EN

Startup screens

The startup sequence runs inside the loading screen when the game starts on a startup map. The first map keeps loading behind it, and the screen leaves only when the sequence has ended, loading has finished and no startup hold remains.

On this page

When startup runs

Startup runs when the first map of the game instance is listed in Startup Maps, or is the Game Default Map when that list is empty.

How the game starts First map
Packaged game or -game The Game Default Map. Outside Shipping, the first command-line argument without a leading -, or -map=, overrides it, exactly like the engine does.
Command line names a server address None: connecting first is not a startup.
Play In Editor The map that PIE plays. Every PIE session is a new start.

Build the sequence

Project Settings > Plugins > Orion Loading Screen > Startup > Startup Screens lists the screens in the order they play. Each entry has these fields:

Field Meaning
Kind Splash, Shader Compilation, Press Any Key or Custom.
Duration Splash: seconds on screen. Every other kind: minimum seconds on screen.
Skippable Splash and Custom: any key ends the screen early.
Once Per Process Shows the screen on the first startup only; a restarted startup skips it.
Widget Your Orion Loading Screen Widget for this screen. Empty uses the built-in look; Custom requires one.
Image Image of the built-in splash, centered and fading in and out.
Text Text of the built-in look: splash caption, shader compilation title or key prompt. Empty uses the default text.

The default sequence is one Shader Compilation entry with Duration 0 that is not skippable and plays on every startup. A typical sequence:

  1. Splash with your studio logo, Duration 2.5, Skippable, Once Per Process.
  2. Shader Compilation, Duration 0.
  3. Press Any Key, Duration 0.

Screens whose condition does not apply are skipped: a shader compilation screen with nothing to compile, a custom screen without a widget, and a once-per-process screen after a restart.

Screen kinds

Splash

Shows Image with Text below it for Duration seconds. The built-in look fades the image in and out over 0.4 seconds and hides the background image.

Shader Compilation

Precompiles the bundled PSO cache in fast batch mode and shows the share of finished precompiles. The screen appears only while precompiles are pending, so it costs nothing on later starts. The total can grow while the cache adds work, but the displayed progress never goes back. The state also carries the finished and seen counts (Shader Precompiles Completed and Shader Precompiles Total); the built-in screen shows them as its status.

Leave r.ShaderPipelineCache.MaxPrecompileTime at its default of 0. With a time budget the engine reports a remaining count estimated from elapsed time and drops to background compilation once the budget is used up, so the screen would end before compilation does.

Outside this screen, startup keeps PSO compilation in background batch mode so splash media does not stall. For collecting and bundling PSO caches, see the Unreal Engine documentation on PSO caching.

To preview the screen without a bundled PSO cache, for example in Play In Editor, set OrionLoadingScreen.SimulatedShaderPrecompiles to a count such as 2400. The simulated precompiles are added to the real ones, complete at OrionLoadingScreen.SimulatedShaderPrecompileRate per second (400 by default) once the screen begins, run once per process, and start over when you set the count again. Put them in [ConsoleVariables] of Config/DefaultEngine.ini only for previews and samples; a shipped game shows its real PSO cache.

Press Any Key

Shows the loading status until nothing needs loading, then waits for any key, mouse button or gamepad button. The prompt never appears while loading continues, so a key press always leads straight into the game. Duration delays the prompt.

Custom

Shows Widget until the widget calls Finish Startup Screen, at the earliest after Duration. Use it for screens such as a health warning, a language choice or an end user license agreement. Skippable lets any key end it as well.

Your own startup widgets

Startup widgets use the same base class as the loading screen widget, Orion Loading Screen Widget. On Loading Screen State Changed tells the widget which screen it shows (Kind), the title, the progress and whether the press any key prompt is waiting (Waiting For Input). See your own widget.

Keep startup up for your own work

Call Add Startup Hold on the Orion Loading Screen Subsystem with any object, and Remove Startup Hold with the same object when its work is done; a destroyed holder releases its hold by itself. Use holds for work that must finish before the player sees the game, such as signing in or reading the first save. Holds only apply while Is Startup Active is true.

Restart startup

Restart Startup enters the startup presentation again, for example to retry after a failed sign-in. Screens marked Once Per Process are skipped then; Has Played Startup Intro tells whether they already played.

Type two or more characters

Contact us

Questions about the plugin, purchases or partnerships? Send us an email.