Trouble with input focus (UI vs Game)
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 :)
Issue 1 solution:
Custom BP node created in C++ (PlayerController class)
Issue 2 solution:
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.
answered Feb 27 '16 at 09:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here