# Blueprint Touch Button

**URL:** <https://forums.unrealengine.com/t/blueprint-touch-button/281216>\
**Category:** UI\
**Tags:** button, hud, unreal-engine, touch, Blueprint, question\
**Created:** [April 21, 2014, 3:02pm UTC](https://forums.unrealengine.com/t/blueprint-touch-button/281216 "2014-04-21T15:02:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Papasmurfo\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Papasmurfo\_1](https://forums.unrealengine.com/u/Papasmurfo_1)\
**Post date:** [April 21, 2014, 3:02pm UTC](https://forums.unrealengine.com/t/blueprint-touch-button/281216/1 "2014-04-21T15:02:32Z")

</div>

Hey guys,

I’ve been looking around and seen A LOT of people are running into trouble doing some very basic HUD stuff, I know there isnt much documentation at the moment out there.

I’m looking to do a simple touch button based on the Content HUD Example, but running into a lot of troubles.

I have currently got a Rectangle to appear on my hud, but not too sure on how to connect it to a ‘TouchBegin’ event and make it call a function from a different Blueprint.

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d972bf97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d972bf97](https://forums.unrealengine.com/u/anonymous_user_d972bf97)\
**Post date:** [April 21, 2014, 4:22pm UTC](https://forums.unrealengine.com/t/blueprint-touch-button/281216/2 "2014-04-21T16:22:47Z")

</div>

I believe this is done using hitbox’s. I created a var and set it when creating the button, and then use that for the TouchBegin.

---

<div class="post-metadata">

**Author:** ![Papasmurfo\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Papasmurfo\_1](https://forums.unrealengine.com/u/Papasmurfo_1)\
**Post date:** [April 21, 2014, 8:16pm UTC](https://forums.unrealengine.com/t/blueprint-touch-button/281216/3 "2014-04-21T20:16:27Z")

</div>

Can you take my through the steps in more detail?

Currently I have attached it to the camera and added a ‘Text’ block in the components, then linked it to a TouchBegin event.

Any staff help would be appreciated as a lot of people are getting into a tangle over this.

---

<div class="post-metadata">

**Author:** ![ArcadeOrigins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArcadeOrigins](https://forums.unrealengine.com/u/ArcadeOrigins)\
**Post date:** [April 21, 2014, 9:38pm UTC](https://forums.unrealengine.com/t/blueprint-touch-button/281216/4 "2014-04-21T21:38:53Z")

</div>

The normal steps for HUD are :  
1 - After “Event Receive Draw HUD”, add an Hit Box.  
2 - Add an “Event Receive Hit Box Click”.

You can see little example here, in a discussion I opened : [Why don't I receive an event from the HitBox on Mobile? - Community & Industry Discussion - Unreal Engine Forums](https://answers.unrealengine.com/questions/31397/hud-hitbox-dont-receive-event-on-mobile.html)

But I have no event received with this.

Maybe it’s a bug, but without UE developers response I’m not sure.

Maybe the 4.1 update will correct this ?

---

<div class="post-metadata">

**Author:** ![Papasmurfo\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Papasmurfo\_1](https://forums.unrealengine.com/u/Papasmurfo_1)\
**Post date:** [April 22, 2014, 10:03am UTC](https://forums.unrealengine.com/t/blueprint-touch-button/281216/5 "2014-04-22T10:03:24Z")

</div>

Thanks for the Response - I hear they have Slate? But I can’t see any documentation or anything about how to run it?

---

<div class="post-metadata">

**Author:** ![ArcadeOrigins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArcadeOrigins](https://forums.unrealengine.com/u/ArcadeOrigins)\
**Post date:** [April 22, 2014, 2:55pm UTC](https://forums.unrealengine.com/t/blueprint-touch-button/281216/6 "2014-04-22T14:55:26Z")

</div>

I have not yet the time to try Slate.

You can find tutorials on the Wiki :

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

[A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Slate),_Loading\_Styles_%26\_Resources
