I have been trying to figure out why I am running into issues with UI/UMG focus problems. Basically I have a very simple Test UI, it has 2 buttons in a vertical box and a image behind them. On event create I set keyboard focus to the top button and when the game starts, both the keyboard, gamepad and mouse work well. However as soon as I click anywhere there is not a button (i.e. the background image) the buttons lose focus and the keyboard/gamepad will not longer work. (unless I click on a button with the mouse again to bring it into focus)
This all would make sense to me but I have the UI setup to be “Set input mode UI only” and have set all the other panels/ non-button elements (background image, etc) self hit test invisible. (I have also tried setting these to other settings from the visibility drop down but seems to make no difference)
Here is the UMG setup…
Here is the graph for the UMG…
Here is the issue in the viewport…
Any help would be greatly appreciated.
Oh, I have also tried it in the world as a 3d widget and endup running into the same issues of focus.
Thanks in advance,