Quick starts

Add a startup screen

Cover the first seconds with your logo while a heavy product loads, and show the product only when it is ready.

A heavy product is not finished when its level opens. Shaders are still compiling, textures are still streaming in and streamed levels appear a few frames later. The startup screen covers that: your logo on a background color, shown until the product is ready. It is set up in Global Settings, with no Blueprint.

Quick start

  1. Open the product's Global camera & UI settings asset. The slot is in step 04 - Cameras on the configurator. An empty slot means the settings below do nothing, so assign an asset first.
  2. In the Startup Screen category, tick Show startup screen.
  3. Pick a Startup Logo and a Startup Background Color.
  4. Press Play.

The logo fades in while it grows slightly to its final size. When the product is ready, logo and background fade out together and the logo shrinks slightly as it goes.

Settings

SettingDefaultMeaning
Show startup screenOffShows the screen when the level starts.
Startup LogoNoneThe image in the middle. Empty shows the background color only.
Startup Logo Width320Width on screen. The height follows the image.
Startup Background ColorBlackThe color behind the logo.
Startup Logo Fade In Seconds0.8How long the logo takes to fade in and grow to size. 0 shows it at once.
Startup Min Seconds0The shortest the screen stays up, even when everything is ready sooner.
Startup Max Seconds30The longest it stays up. It lifts then, whatever is still loading.
Startup Fade Out Seconds0.6How long logo and background take to fade away.
Startup Screen ClassNoneYour own Widget Blueprint to show instead. See Your own screen.

The settings are read from the product the session starts on. With Startup Min Seconds at 0 and a light scene, the screen can lift before the logo has finished fading in. Set a minimum of 2 seconds or so if you always want to see the whole animation.

What happens at start

  1. The screen goes up before the first frame is drawn, above the configurator UI.
  2. The product loads as usual. The camera is already parked on the first view underneath, so that view is what loads: the Start camera, or the camera the intro lands on.
  3. The screen waits until the product has loaded and the scene has stayed ready for a few frames, and at least Startup Min Seconds.
  4. The screen fades away. A product intro that plays on startup begins at this moment, not underneath the screen.

"Ready" means the configuration has loaded, streamed levels are visible, shaders and PSOs have finished compiling and textures have streamed in. A PSO (pipeline state object) is what the graphics card needs before it can draw a material; preparing one the first time a material appears is what causes a short freeze in a packaged game. These are the same checks as the interior fade's Hold until ready.

Startup Max Seconds always ends the screen. When it does, the Output Log has a line starting the startup screen reached its maximum that names what was still loading.

While the screen is up

  • Orbit and zoom are ignored. A mouse button held through a loading hitch cannot throw the camera.
  • Clicks do not reach the configurator UI underneath.
  • Configuration and camera commands are refused with Loading. This includes commands from a kiosk tablet or a web page.

Your own loading

If your project loads things of its own, keep the screen up until they are done. In Blueprint, get the BAKR Product Subsystem and call Add Ready Hold with a name before the product connects. Call Release Ready Hold with the same name when you are finished. The screen waits for it, up to Startup Max Seconds.

On BAKR Ready on the player controller fires once per session, when the first product is on screen. With a startup screen that is after it has faded away; without one it is straight after the product arrives. Use it to start music or anything else that should wait for the picture.

Your own screen

To replace the look, make a Widget Blueprint with BAKR Startup Screen Widget as its parent class, design it in the Widget Designer and assign it as Startup Screen Class. It receives two events:

EventWhen
On Progress (Seconds, Waiting For)Every frame while the screen waits. Waiting For names what is still loading.
On Dismiss (Fade Seconds)Once, when the screen starts to fade away.

A screen of your own fades out as a whole over Startup Fade Out Seconds. Logo, color and logo fade-in are for the built-in screen only.

Pixel Streaming and kiosk

The stream shows the startup screen like any other picture. Web clients also get a loading event when it goes up and when it has gone, and the catalog carries loading: true in between. See the Web API.

The kiosk control page and the BAKR player page do not show a loading state of their own yet. Their buttons stay visible while the screen is up, and commands are refused until it lifts.

Things to know

  • The screen starts once the level has loaded. It does not cover the time the engine takes to open the map.
  • The game freezes for moments while a heavy product loads, so the logo's fade-in can stutter at the very start.
  • In a packaged build without a PSO cache and with PSO precaching off, the engine cannot report shader work in progress. Use Startup Min Seconds to cover it.
  • Switching to another product later does not show the startup screen. A product switch uses its own transition.
  • A project that connects its first product from its own code, instead of through BAKRGameMode, calls Begin Startup Gate on the controller just before Connect Product.