Creating a Loading/Splash/Welcome Screen

Hello everyone.

Can someone tell me how do you manage to play media player at that first black/splash/welcome screen when game starts?

I know about FCoreUObjectDelegates::PreLoadMap.AddUObject(this, &UMyGameInstanceCPlusPlus::BeginLoadingScreen); which you use in GameInstance, but i need to know where do you execute function for that first black/splash/welcome screen when game starts. My guess is in GameInstance as well but how to do it?

Thanks in advance!

Hi there! Welcome to the forums!

I recommend you download the ShooterGame example, and use the code for their LoadingScreen submodule.

That code shows you how to use a static image or a video as a loading screen :slight_smile:

Please remember to edit your .uproject via any text editor to include the submodule, as the shootergame.uproject does, because the LoadingScreen submodule has to “hook in” before the game module loads :slight_smile:

For reference I am talking about this (inside .uproject opened as a text file)

			"Name": "ShooterGame",
			"Type": "Runtime",
			"LoadingPhase": "Default"
			"Name": "ShooterGameLoadingScreen",
			"Type": "Runtime",
			**"LoadingPhase": "PreLoadingScreen"**



Thank you very much Rama for clarifying this! Just one more question, at the moment when i try to build my project with this module it can’t build this new module’s DLL. Any idea why? I have copied their module and made my own and in both i get the same error.

Nevermind, i have managed to fix everything, thanks for the welcome Rama, and thanks for helping :heart: