# How to increase hitbox from button widget

**URL:** <https://forums.unrealengine.com/t/how-to-increase-hitbox-from-button-widget/384071>\
**Category:** UI\
**Tags:** button, unreal-engine, hitbox, Collision, Widget, Blueprint, question\
**Created:** [February 6, 2017, 1:49pm UTC](https://forums.unrealengine.com/t/how-to-increase-hitbox-from-button-widget/384071 "2017-02-06T13:49:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_24eaf5df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24eaf5df](https://forums.unrealengine.com/u/anonymous_user_24eaf5df)\
**Post date:** [February 6, 2017, 1:49pm UTC](https://forums.unrealengine.com/t/how-to-increase-hitbox-from-button-widget/384071/1 "2017-02-06T13:49:00Z")

</div>

![125139-hitrange.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/6/55652527d023060d275ab51894e29ac00e7cb24d.png)

How to increase hitbox from button widget

is there any solution exists?

Thanks for reading.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1600e71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1600e71](https://forums.unrealengine.com/u/anonymous_user_e1600e71)\
**Post date:** [February 6, 2017, 2:17pm UTC](https://forums.unrealengine.com/t/how-to-increase-hitbox-from-button-widget/384071/2 "2017-02-06T14:17:56Z")

</div>

I’m wondering why you don’t just make the button bigger ?

However, just my 2 cents answer since I’ve never tried to do so → Fake it ! Make a bigger button, then apply a button texture that doesn’t fill the entire area.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24eaf5df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24eaf5df](https://forums.unrealengine.com/u/anonymous_user_24eaf5df)\
**Post date:** [February 6, 2017, 4:18pm UTC](https://forums.unrealengine.com/t/how-to-increase-hitbox-from-button-widget/384071/3 "2017-02-06T16:18:41Z")

</div>

Thank you for answer.  
It’s hard to do because it’s a company project.  
On mobile, the button image is small.  
I want to make the hitbox bigger than the image To make it easier for the user to press

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1600e71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1600e71](https://forums.unrealengine.com/u/anonymous_user_e1600e71)\
**Post date:** [February 7, 2017, 3:00pm UTC](https://forums.unrealengine.com/t/how-to-increase-hitbox-from-button-widget/384071/4 "2017-02-07T15:00:26Z")

</div>

“It’s hard to do because it’s a company project”. I don’t see the point here…ask you graphic designer to work again on the icon, that’s it.

Anyway, even if if you absolutely can’t have bigger icon, then I think it’s a big mistake to have a bigger hitbox. Just imagine a second that on your Android (let’s imagine you have android) all the icon hitboxes are bigger that what we can see on the screen, it would be a nightmare and make the whole think unusuable. Of course, if there are some large spaces between button I guess it’s okay to do so.

Finally, if you really really need to this (but again, just resize that ■■■■ icon lol…), you can do what I suggest in my previous comment:

> Make a bigger button, then apply a button texture that doesn’t fill the entire button area (so your texture has empty spaces around the “real” icon)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24eaf5df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24eaf5df](https://forums.unrealengine.com/u/anonymous_user_24eaf5df)\
**Post date:** [February 11, 2017, 3:59pm UTC](https://forums.unrealengine.com/t/how-to-increase-hitbox-from-button-widget/384071/5 "2017-02-11T15:59:34Z")

</div>

I’ve looked at the Unreal Engine code, and probably I can reduce the only image scale in rendering to code.  
I’m going to try it.  
Thank you.
