Hello, I have a bit strange issues with focus or I think there is some basic functionality missing in UE.
Issue 1:
I need some node like bool IsMouseOnWidget(); because when I click on HUD button my character moves to this location (RTS). How to properly make input ignored when I click on HUD button ?
Issue 2:
After clicking on HUD button, focus is probably changed to “UI only” and I can not use keys to move camera, in order to be able use keys again I need to click on empty place (that probably changes focus back to “UI and Game”.
I don’t think that nodes Set Input Mode UI Only/UI and Game/Game Only are solution here. I tested all of them. Thank you
You need to set every UMG widget to bFocusable = false in properties of widget, don’t forget to set it for root too! Best way to debug focus is enabling visual rectangle in Project Settings > User Interface.