# Why don't I receive an event from the HitBox on Mobile?

**URL:** <https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916>\
**Category:** Community & Industry Discussion\
**Tags:** hud-blueprint, hud, Mobile, unreal-engine, hitbox, question\
**Created:** [April 17, 2014, 8:36pm UTC](https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916 "2014-04-17T20:36:19Z")\
**Posts on this page:** 7\
**Page:** 1

<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 17, 2014, 8:36pm UTC](https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916/1 "2014-04-17T20:36:19Z")

</div>

I don’t receive event from the HitBox.

The mobile input touch isn’t taken in account ?

 ![4359-hud_hitbox.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/9/c19a60b1b756f3bd0d37da0eae07a5785ff289e0.jpeg)

---

<div class="post-metadata">

**Author:** ![Steve\_Allison](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Allison](https://forums.unrealengine.com/u/Steve_Allison)\
**Post date:** [April 17, 2014, 11:19pm UTC](https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916/2 "2014-04-17T23:19:13Z")

</div>

Hey Eddy71,

Thanks for your question! This setup by itself won’t enable your HUD to work 100%, you will need to setup a PlayerController (and Game Mode) that will **Enable Click Events** , assuming you don’t already have them enabled.

If you download the ContentExamples add-on from the Marketplace, there is a map in that project called Blueprint\_HUD that you can look through for examples of how to make a simple pause menu with options. If you have any specific questions about how to implement anything from that example map, just let us know!

If this does not resolve the issue with Hitboxes picking up Touch input on a mobile device, let us know what kind of device you are testing on.

Cheers,

-Steve

---

<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 18, 2014, 1:14am UTC](https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916/3 "2014-04-18T01:14:45Z")

</div>

Hi Steve,

Thanks for your answer.

Here it is the settings for my GameMode and PlayerController. HitBox events are no more received.

Are this settings ok ??

 ![4364-settings.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/c/2dcf099b30b7c2a8040378a76019aa4aa4943483.jpeg)

Your Blueprint\_HUD example perfectly works on desktop. But it is not designed for mobile devices usage. For purpose test I just settled true the “Menu Open” variable (because no “M” key) to immediately display buttons. And I launched your example on my iPhone5 and iPad4. When I touch “Resume” and “Quit” buttons, nothing happen. Events are not received ?

 ![4365-bpexamplehud.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/f/ddf8aafabd856c85254a446949b5ce351dfade88.jpeg)

---

<div class="post-metadata">

**Author:** ![Steve\_Allison](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Allison](https://forums.unrealengine.com/u/Steve_Allison)\
**Post date:** [April 30, 2014, 4:31pm UTC](https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916/4 "2014-04-30T16:31:53Z")

</div>

Hey Eddy71,

Sorry for the delay in response on this issue–Event Receive Hit Box Click doesn’t register touch events currently. We are looking to add touch input for mobile to this event as well, but we don’t have an ETA for that implementation to be available.

If you would like to see examples of how to have HUD-like menus/input without using a HUD blueprint, check out the main blueprint used in TappyChicken on the Marketplace and look for the Input section.

-Steve

---

<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 30, 2014, 5:20pm UTC](https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916/5 "2014-04-30T17:20:22Z")

</div>

Hi Steve,

I have seen the TappyChicken with components button implementation, but in my case it is not applicable. (Because if the camera move, buttons components move too in the world).

Work around used : With the “Input Touch” event, I compare the touch location with my buttons coordinates.

Now, waiting for future UE release to get a clean HUD.

---

<div class="post-metadata">

**Author:** ![pedrodacruz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrodacruz](https://forums.unrealengine.com/u/pedrodacruz)\
**Post date:** [December 12, 2014, 12:52am UTC](https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916/6 "2014-12-12T00:52:50Z")

</div>

I’m really disappointed… it took 5 days to discover this post…

---

<div class="post-metadata">

**Author:** ![AlexanderSt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexanderst/32/465118_2.png) [@AlexanderSt](https://forums.unrealengine.com/u/AlexanderSt)\
**Post date:** [July 12, 2023, 1:30am UTC](https://forums.unrealengine.com/t/why-dont-i-receive-an-event-from-the-hitbox-on-mobile/280916/7 "2023-07-12T01:30:01Z")

</div>

To recive click events on hud hitboxes use EnableClick Events bp node

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/3/2c33c51ed7a44c34bcf83cda49933715b9418cb8.png)  
or do it in hud itself via c++

```auto
void AInfoHUD::BeginPlay()
{
	// Enable input for the HUD actor. Otherwise Hit Boxes will not work.
	this->EnableInput(PlayerOwner);
	PlayerOwner->bEnableClickEvents = true; // this necessary!

	Super::BeginPlay(); // call parent
}

```

to process events i used this:

```auto

// triggered once hitbox click
void AInfoHUD::NotifyHitBoxClick(FName BoxName)
{

	// Process HitBoxes
	if (BoxName == HitBox_ShowDebug) {
		UE_LOG(LogTemp, Warning, TEXT("[HUD] ShowDebug HitBox Clicked"))
	}

	Super::NotifyHitBoxClick(BoxName); // call parent
}

```

In Game there is button made via pure hud, which recives clicks.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/e/33e684ad48ac29fd3d10ac0d6f1c17f9d7684d80.png)  
on click looks like this:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/2/3e205ed05c0a776105cb1f974ee1b4eb19c8ed29.png)
