I am attempting to make a menu system.
What I have is a menu level and a game level, using a quick UMG UI widget blueprint (Menu). So I have a play button and a quit button, both work, the play opens up the level. I have 2 different gamemodes, MenuGameMode and LevelGameMode, for each level. What I am stuck on is where to put keypress events to toggle the visibility of the menu, at present it stays on the game level and is interactive until I click on the world, at which point the game works but I have a menu displayed I cannot interact with.
Not sure if key events should be in the Menu widget and that stays persistent throughout the game, in the HUD section of the gamemode or somewhere in the Controller class, is there a “proper” way to do this or something obvious I am missing?
The idea I had was that the Menu level would have an overriding Menu system persistent between levels, is this a wrong approach, should I be somehow duplicating the Menu each level?