UMG Menu Building

Hello, while creating a menu in UMG, must the widget be loaded on a separate map? Can i have it function on the map that is to be played itself? If so, how can I have the widget close out as soon as someone hits the start button since the “Open Level” function would just reset the same level. If its required to create a separate map, how would I go about cooking the level? Would it cook both maps since the level is referenced?

Thanks a lot!

Hey there (:

so you have an UMG Widget that has a button to perform the “Open Level” command? You can call “Remove from Viewport” to remove a widget. If the level you want to start is the same where your Menu is placed, you don’t need to call the Open command. You could just use a bool like “IsGameStarted” or something and change it to true if you hit the button. Then you “Remove” the widget “from viewport” and the game starts. You would need to place the branch with the “IsGameStarted” in front of your character spawn function or something you set up to start the game normaly.

You could also place the whole menu in a seperated level and use “Open Level” to load you actual game. I think this solution is better :X But this is different from game to game.

yes! thank you, I just removed the open level and left it to remove viewport.