Button in Widget not working, Please help

ButtonNotWorking.mkv (7.0 MB)



The Exit button works but Level 1 doesn’t, I think its a bug but if there is any solution please let me know, I have also attached a video.

Maybe you have a white space after the level name string.

Although this shouldn’t be a problem, it could be that the button is not working because you are already in Level1 when trying to open Level1:

You could also try opening the level By Object Reference instead of By Name.

Rarely, if you had a different level name, and then changed it to Level1, the Open Level node would need refreshing to work. I don’t remember the last time this has happened, but you can right click on the Open Level node then Refresh, or from File > Refresh All nodes.

No, it still doesn’t work…and I don’t think its the problem of me being in level the same level as the game should work.

You’re travelling to the same level, and adding the MainMenu widget to the viewport OnBeginPlay of the level, so everytime you click the “Level 1” button you are actually opening the level where the widget is then added to the viewport just like it should. Basically, since you’re traveling to the same level, nothing at all would happen or change in the scene or UI when you click “Level 1”, so you will get no feedback other than the debug string.

Can you make sure that Show Stats is enabled so that the debug string is visible?

1 Like

Thanks I actually got the solution!!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.