i want the resume button to be hidden when the game is first run and after the game started it should show up. but that doesn’t happen it just hides it but never unhides it why is this happening?
You set it to hide on initialization. So how can you ever press the button?
i want the button to be hidden while in the main menu and when the player starts the game it should unhide it. how do u suggest I should do it?
Sorry, yes, two buttons.
Are you adding the main menu to the viewport every time? That will keep hiding it.
If you only add the main menu once, and hide it and unhide it, then the button should be visible after the level load.
i don’t get what u mean could u be more specific
could some1 help I’m kinda stuck I’m my development.
Some more informations would be nice … maybe you can provide more screenshots of your UI Setup, the Widget Creation process or anything else?
the menu is created with the escape key and there’s some basic buttons like quit or options and all of that stuff
guys i uploaded the wrong screenshot for a sec i fixed it now u cna check it out
For me it seems like everytime you press Escape, a fresh MainMenu Widget is opened - with the Resume button set as Hidden in this case.
Additionally, is there anywhere defined, that the MainMenu widget is removed after pressing the NewGame button?
no it doesn’t cuz when the game is paused the escape key no longer works and the only way to get out of menu is pressing the resume button which unpauses the game and removes the widget however I don’t want the resume button to be visible at first when the game hasn’t started yet and I’m not able to do that for whatever reason.
for the first time the menu gets removed cuz its in an empty level with nothing but the menu so when new game button loads the main level it gets removed
Ok, I see. So, for the first time, there is no Resume button. You press New Game, the Resume Button is set to Visible, the Level changes and the MainMenu widget is removed. The next time you press Escape, you create … or lets say Construct … a whole new MainMenu widget, with the Resume button again set as Hidden. I’m not very used to the Widgets in UE, but I think you need to find a way to save the process of revealing the Resume button for the next time pressing Escape.
When you remove widget (main menu) with remove from parent, its gone, no states of that main menu widget are saved. Same thing when new level is open. Also, nothing is processed after open level command is executed. Making a main menu is not as simple as people think. Best to find some tutorials.
tutorials dont go into these more advanced stuff they usually teach the basic stuff like clicking buttons. and my ui is mostly done its just this small problem i cant find a solution for
Quick and dirty, but: You could check which Level is open at the beginning of the Construction process for the MainMenu widget and decide based on that information, if the Resume button is shown or not.
But you can use these new insights for your next projects and maybe try to integrate a GameInstance for saving specific informations over the whole session. 
Just because I’m curious: Shouldn’t it be sufficient to check the Level name within the Event Construct node? Checking it every tick seems quite overkill. And you also could check for the MainMenu level so you won’t face any problems with additional levels.
yeah, u were right i plugged it to construct and now it works. thanks everyone I think it works for now





