I’m working on the implementation of controller in my project, right now I’m trying to get the focus back on the menu when i come from a submenu window:
When I’m (for example) in the UI_MainMenu and the button “Options” is clicked I create a new widget and use the node Add to viewport:
Now to leave the UI_Settigns window, i have this KeyUp override function:
This, obviously removes the window but completly fails to get the coontroller working again on the UI_MainMenu, I’ve tryed with SetFocus, SetKeyboardFocus, SetUserFocus… noone works.
However, back in the UI_MainMenu (in fact I do this in all of my screens), in the EventConstruct I force the focus on a specific button like so:
If i could get this to work when you come back from a sub menu I guess it could do the work… even though I have the feeling that this is not how it’s supposed to be done.
Any help is welcome, thanks in advance.