Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

New UI system (4.6) - trying to add an eventTrigger on an empty rectTransform

$
0
0
I'd like to have a small button with a larger collision area.
So I've got a parent rectTransform (128w*128h) with eventTrigger. and a child Image (64*64) .
The event trigger only works when I actually click inside the image. doesn't work inside the rectTransform if it's outside the image.
If it was NGUI I would add a boxCollision to the parent and that would work. What's the equivalent in the new UI system.
Right now as a hack, I've added a Text component to the parent rectTransform with no...

New UI system (4.6) - trying to add an eventTrigger on an empty rectTransform

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>