I have a UMG and make it “Set Input mode Game and UI”.
After I clicked a button in the UMG, I remove the UMG from Parent,
to go into my Game.
In my Game logic, my Player Pawn will call “Get Input Touch State” from “Get Player Controller”, in Event Tick.
to see if any Touch of finger 1 occurs.
But I found that each time, I clicked the button in UMG, will make the “Get Input Touch State” return true, even I don’t touch.
After I touch anywhere once, the “Get Input Touch State” will become “normal”, which means if I don’t touch, it returns false.
Therefore, I change to “Set Input mode UI” and the “Get Input Touch State” acts “normal” after I clicked the button.
However, I need “Set Input mode Game and UI” to detect “back key”.
So, can anyone help me how to deal with the false alarm of touch after I clicked button in UMG, which is set “Set Input mode Game and UI”?
PS. The button’s Touch Method is set to “Precise Tap”. I found if I set to “Down and Up”, it is no problem. But I need “Precise Tap” to support Button Scrol.