# UMG or Touch Interface on mobile?

**URL:** <https://forums.unrealengine.com/t/umg-or-touch-interface-on-mobile/557687>\
**Category:** UI\
**Tags:** UE4-25, unreal-engine, Widget, Blueprint, question, UMG\
**Created:** [May 15, 2022, 1:04pm UTC](https://forums.unrealengine.com/t/umg-or-touch-interface-on-mobile/557687 "2022-05-15T13:04:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pompompela](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pompompela/32/485784_2.png) [@Pompompela](https://forums.unrealengine.com/u/Pompompela)\
**Post date:** [May 15, 2022, 1:04pm UTC](https://forums.unrealengine.com/t/umg-or-touch-interface-on-mobile/557687/1 "2022-05-15T13:04:10Z")

</div>

Hi, I’m trying to port my project to mobile.

I’ve designed a UI, but now since I’m using an analog stick it seems I can only use Touch Interface, I can’t find any joystick function in UMG.  
If I use Touch Interface, the Joystick won’t scale to different screen size and ratio like UMG does.

Anyone has a tip or a tutorial to link on how to implement a Joystick in UMG or to scale Touch Interface?

---

<div class="post-metadata">

**Author:** ![Pompompela](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pompompela/32/485784_2.png) [@Pompompela](https://forums.unrealengine.com/u/Pompompela)\
**Post date:** [May 15, 2022, 2:33pm UTC](https://forums.unrealengine.com/t/umg-or-touch-interface-on-mobile/557687/2 "2022-05-15T14:33:20Z")

</div>

Seems like the best solution is obviously to use UMG due to the anchoring system, but then again how do we anchor and scale a Joystick from a Touch Interface?

Can import a Touch Interface in a UMG?

I see an Event Tick function, so if there’s a way to GET TOUCH COORD, I could have it listen and translate the results into 2 Floats.  
Is there a node that “GET TOUCH COORD”?

---

<div class="post-metadata">

**Author:** ![Pompompela](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pompompela/32/485784_2.png) [@Pompompela](https://forums.unrealengine.com/u/Pompompela)\
**Post date:** [May 15, 2022, 3:19pm UTC](https://forums.unrealengine.com/t/umg-or-touch-interface-on-mobile/557687/3 "2022-05-15T15:19:42Z")

</div>

I think that’s it!

 ![TouchCoord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/a/5ea7169d69eba1e5203fbacabccfde87f56f9d4a.png)

---

<div class="post-metadata">

**Author:** ![Pompompela](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pompompela/32/485784_2.png) [@Pompompela](https://forums.unrealengine.com/u/Pompompela)\
**Post date:** [May 15, 2022, 3:44pm UTC](https://forums.unrealengine.com/t/umg-or-touch-interface-on-mobile/557687/4 "2022-05-15T15:44:54Z")

</div>

Now it can only work if it’s possible to get the “CURRENT SCREEN RATIO” along with “TOUCHED BUTTON COORDINATES”.

Anyone knows if there are such nodes?

---

<div class="post-metadata">

**Author:** ![Pompompela](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pompompela/32/485784_2.png) [@Pompompela](https://forums.unrealengine.com/u/Pompompela)\
**Post date:** [May 15, 2022, 6:04pm UTC](https://forums.unrealengine.com/t/umg-or-touch-interface-on-mobile/557687/5 "2022-05-15T18:04:22Z")

</div>

I think I might just end up manually making Touch Interface profiles for each ratio\*screenSize.

---

<div class="post-metadata">

**Author:** ![GK101010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GK101010](https://forums.unrealengine.com/u/GK101010)\
**Post date:** [March 26, 2024, 5:50pm UTC](https://forums.unrealengine.com/t/umg-or-touch-interface-on-mobile/557687/6 "2024-03-26T17:50:27Z")

</div>

Hi there!

I’m facing the same issue now, need to use the Mobile Touch Interface, but need it to be scalable, did you find any smooth solution for that?
