Where to add to view port the main menu in an empty level

Hi!

I want to show my game’s main menu in an empty level. I think I can do it in the blueprint level, but I don’t want to do it using it.

Are there any options to do it?

I’ve though I can use the PlayerController to add it to the viewport, using, of course, a custom Game Mode only for this level. Is it possible?

Or probably there are other better options.

Thanks!

Hey @ViaCognita!

I would really, REALLY suggest using the level blueprint for this.

If you would like to go another (more complicated) route, you can create an actor that would be unseen that holds all of the code for your menu. Once it’s loaded in, you can use Begin Play on that actor to create a HUD and Add To Viewport any widgets you need. :slight_smile:

But everyone is recommending not using level blueprint.

hi,
like @Mind-Brain suggested level blueprint is a great start, you could also do it in game state, there are many possibilities, this is an awesome course to showcase many different approaches :+1:

hope it helps you too, this course was really great

cheers :vulcan_salute: