Hello everyone! Ive got a problem with trying to get Touch position in UMG widget.
Once I tried to use node Get Mouse Position on Viewport (its work fine to me in editor), but its doesn’t work on Mobile with touch (return 0, 0 pos).
Maybe any ideas how get Touch position inside UMG?
Have you tried overriding OnTouchStarted and Getting Screen Space Position?
Sorry, I had mistake on title. That about get touch pos. in widget
So, if I has widget 1440x2560 & viewport 540x960 I want to get values that fit to widget size (like do node Get Mouse Position on Viewport, values in range of 1440x2560)
I tried to use Get Screen Pos. & its return viewport values (in range 540x960)
Thanks! That work for me
Awesome, good luck with the rest!
get touch position does not exist…
Thanks,
This works for me.
By overriding OnTouchStarted, OnTouchEnded, and the OnTouchMoved functions in a UMG widget, I can use these nodes to process my touches. This is very helpful since the documentation on converting these pointer inputs is unclear. Also, this method will work with multi-touch, unlike the GetMousePosition method.


