Basic menu won't close after game starts

Hi, I’ve just created a basic main menu by following I got two problems.

  1. Mouse doesn’t show up when main menu is showing.
  2. Menu doesn’t close when I press new game or continue.

I have changed Remove from Viewport to Remove from Parent because the viewport one isn’t there and people said that worked for them, He used a older version so maybe more was changed.

Hi

It is now remove from parent., so that is correct.

Can you show your code on how you are getting your mouse up and removing your Widget.

there’s 2 screenshots that show everything I did, was the same in the video.

Ok Try this,

BP1 - Remove from Parent & Hide mouse before opening level

BP2 - You do not have mouse show, it is unticked.

Ok, I changed it to how you got it but it stays the same.

I managed to make the menu disappear for about half a second by changing the name on open level back to none

HI

What you have looks right. I am guessing that the Show mouse works now?

Just the Widget still stays?

HI

Where do you have “Add Widget to Viewport”?

that’s what the blueprint2 screenshot is.

Hi,

Made a replica of yours and one mine combined,works fine.

Hit, button, widget deletes, mouse comes back and new level starts.

45327-capture.jpg

Weird don’t know why mines not working, guess I’ll just leave it for now and come back to it later.

Any luck?

Just checking up.

nah, I just decided to start working on my map again will go back to it sometime later since I’m not actually trying to make a game atm.

It’s been a long since your post but I thought I’d reply as I’ve solved this issue. Create a new level to serve as a main menu. Your game loads into it, creates the main menu (in level blueprints), then the main menu blueprint opens the first level and destroys itself (redundant).

So Main menu level has the level blueprint, All your other levels do not.

It seems that the issue was that you would load the first level into the main menu, then the main menu would load the level again, which would create the main menu again. Hope that helps anyone else who encounters this issue.

Here’s a fix:

Make a dummy level for the menu (as others have said), then in the Main Menu blueprint, change the order of the sequence to be:

OnClick > Remove from Parent > Open Level

To be extra sure, you can also drop in a “Remove all Widgets” node in this case.

Has worked every for me.