Where do I have to put the code to display the main menu of my game?

510 Views Asked by At

I've just started to learn Unreal Engine and I developing a Pong game using C++.

To create the menu I have used UMG and to learn how to do it, I have watched Wiring up the Main Menu tutorial from Unreal Engine Online learning.

To show the Widget with the menu the instructor has created a new empty level and he has used Level Blueprint to show it. But the instructor said: "Traditionally, you don't use the level Blueprint for much".

So, if we don't have to use the level Blueprint, what do I have to do to display the main menu?

1

There are 1 best solutions below

0
Hash Buoy On

Make a new Gamemode for your menu and a Hud class. Load your widget in the hud class on Event BeginPlay.