Download

Menu widget focus issue

I can’t get my menues to focus properly. When I create a menu at the start of the game, it has focus as expected. However, when I click an option on that menu and open a new menu in response, the new menu does not have focus. You have to click on the view port before any of the widgets respond to mouseover events. I can’t find the magic bullet to give the new menu focus without requiring the user to click on the view port first. What’s the trick to this?

https://answers.unrealengine.com/questions/160343/how-to-set-the-focus-on-a-widget.html

You can try this:



FInputModeUIOnly InputMode;

InputMode.SetWidgetToFocus(YourWidget->TakeWidget());

YourPlayerController->SetInputMode(InputMode);


Tried both of those. The focus is still erratic.