Sample project
Orion Loading Screen Sample is a separate Blueprint-only project for Unreal Engine 5.8 / Win64. It shows a studio logo film, a shader compilation screen, a press any key prompt and travel loading screens between four levels, all drawn as one HTML page with OrionBrowser.
Open it
- Download the sample and install both plugins in it: Orion Loading Screen in
Plugins/, OrionBrowser inOrionLoadingScreen Plugins/. The sample includes neither plugin.OrionBrowser - Open
OrionLoadingScreenSample.uproject. Click the WebUIStudio button on the Level Editor toolbar and Download the OrionBrowser dependencies once. - Play in Standalone Game or package the project: startup screens run in Play In Editor too, but a synchronous map load freezes the editor's viewport.
What happens
| Moment | What you see | What drives it |
|---|---|---|
| Start | The logo film | A Custom startup screen; the page sends loadingScreen.finishStartupScreen when the film ends. Any key skips it. |
| Shader compilation | Progress, percent and the pipeline state count over a looping sand video | A Shader Compilation startup screen. The sample adds 2,400 simulated precompiles, see below. |
| Press any key | The prompt, once the hall has loaded behind it | A Press Any Key startup screen. |
| Hall | A menu with three destinations | WBP_SampleMenu, an OrionBrowser page that sends sample.travel. |
| Travel | The destination's picture, its name, the stage of the moment, the percent and a tip | Begin Loading Operation with the map name as Variant, Wait For Loading Screen, then Open Level. In the destination, BP_SampleLoadingWork reports a few seconds of work through a loading task. |
| Replay startup | The shader compilation and press any key screens again | Sets the simulated count again and calls Restart Startup. |
Where things are
| Asset | Role |
|---|---|
Content/ |
The web app: loading page (#/loading) and menu (#/menu), with the logo film and the sand video in public/media |
/ |
The loading screen widget of Web UI with OrionBrowser |
/ |
The menu and the destination bar; travel and Replay startup |
/ |
A loading task that reports a few seconds of work with progress |
/ |
L_Hub (Game Default Map), L_Dunes, L_Foundry, L_Glacier |
Config/ |
Loading Screen Widget, Fade Out Seconds and the three startup screens |
Config/ |
The simulated precompile count |
Content/ |
An empty localization target for en and zh-Hans: a packaged game accepts -culture=zh-Hans only when a game localization target provides it |
Simulated shader compilation
The sample bundles no PSO cache, so it sets OrionLoadingScreen.SimulatedShaderPrecompiles=2400 and OrionLoadingScreen.SimulatedShaderPrecompileRate=360 in [ConsoleVariables] of Config/. The screen then shows about seven seconds of compilation once per process. Remove the two lines in your own project; with a bundled PSO cache the same screen shows the real count.
Package it
Package from Platforms > Windows or with RunUAT BuildCookRun. The four maps are listed in Maps to Cook. OrionBrowser stages the web app and its Helper; keep the whole output folder when you share the build.