# Get Touch Pos In Widget \[UMG\]

**URL:** <https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697>\
**Category:** UI\
**Tags:** Input, unreal-engine, touch, UE4, Blueprint, question, UMG\
**Created:** [August 15, 2018, 1:09pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697 "2018-08-15T13:09:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![GloryOfNight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GloryOfNight](https://forums.unrealengine.com/u/GloryOfNight)\
**Post date:** [August 15, 2018, 1:09pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/1 "2018-08-15T13:09:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 15, 2018, 1:29pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/2 "2018-08-15T13:29:34Z")

</div>

Have you tried overriding _OnTouchStarted_ and _Getting Screen Space Position_?

---

<div class="post-metadata">

**Author:** ![GloryOfNight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GloryOfNight](https://forums.unrealengine.com/u/GloryOfNight)\
**Post date:** [August 15, 2018, 1:49pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/3 "2018-08-15T13:49:10Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 15, 2018, 1:59pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/4 "2018-08-15T13:59:18Z")

</div>

Sounds like you want local size but I’m not sure:

 ![250563-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/b/c9b911b56c5f1f3f2afd6141a5f85a4f3c6de523.png)

There’s a couple more absolute nodes, experiment with those if the above does not get you what you need.

---

<div class="post-metadata">

**Author:** ![GloryOfNight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GloryOfNight](https://forums.unrealengine.com/u/GloryOfNight)\
**Post date:** [August 15, 2018, 2:24pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/5 "2018-08-15T14:24:25Z")

</div>

Thanks! That work for me

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 15, 2018, 2:25pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/6 "2018-08-15T14:25:09Z")

</div>

Awesome, good luck with the rest!

---

<div class="post-metadata">

**Author:** ![Nizami\_Nz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nizami\_Nz](https://forums.unrealengine.com/u/Nizami_Nz)\
**Post date:** [October 22, 2020, 7:07am UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/7 "2020-10-22T07:07:55Z")

</div>

Hello. I found the answer to this question. The system works without fail regardless of (Anchors) or (Screen Size).You need to insert instead of (Get mouse position) to (Get touch position). Hope I could help you !!!

 ![319609-tocenter.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/9/d89fe11bfd6f15f2df69d69c3d4dc1941e421f87.jpeg)

---

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [January 9, 2021, 7:28pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/8 "2021-01-09T19:28:52Z")

</div>

get touch position does not exist…

---

<div class="post-metadata">

**Author:** ![Fana-TiK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fana-TiK](https://forums.unrealengine.com/u/Fana-TiK)\
**Post date:** [May 28, 2021, 10:26am UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/9 "2021-05-28T10:26:14Z")

</div>

Hello, here is my solution. Ineed to click at button on 3D menu widget on mobile (android)

 ![340076-click3dmenu.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/e/f9eaa929977a1d5d51817b4ad0a465a270ab5595.png)

I perhaps it’s will help for some one

---

<div class="post-metadata">

**Author:** ![NinjaCatFail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NinjaCatFail](https://forums.unrealengine.com/u/NinjaCatFail)\
**Post date:** [October 15, 2023, 7:16pm UTC](https://forums.unrealengine.com/t/get-touch-pos-in-widget-umg/431697/10 "2023-10-15T19:16:29Z")

</div>

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.
