I have an event which activates a widget one screen with a button. When you click the button it closes the widget. My issue is that when the event activates the widget I have to click twice for the button click to register. I then have to click another time anywhere on the screen to restore mouse control.
You will need to manage the input focus with the nodes “Set input mode UI only”, “Set input mode Game only” and “Set input mode Game and UI”. For example if you would like for the focus to no longer be the UI after removing the UI from the screen you could call “Set input mode Game only” i hope that this information helps.