I need it because the image
is small and it's difficult to touch it on the mobile device. So I need to have bigger area of interactable zone but the image
should stay small.
Just go to "add component" in the inspector, search image, and put that into Target Graphic.
A surprisingly better way (in terms of ease and performance) is to add a text child element, even if you already have one. Leave the text empty and resize it however you like. It doesn't add any alpha.
You need to set it up so that the image is inside a button object. Like this:
This way you can have the Button as big as you want and the Image can be any size. If you don't need the Button background image just make the color transparent in the image componenent of the Button object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With