Like written in the title. Is there any way to create an uGUI button with a collision area bigger than the sprite?
I am using unity 4.6 beta v18
I explored the possibility of scripting the collision area but due to the way IsRaycastLocationValid works its not possible (obviously) to detect something beyond the borders of the sprite.
Is there any method that can help me that I don’t know of?
Unfortunately it doesn’t look like there is a easy and clean solution for this.
The quick solution: You can make invisible buttons with transparent sprites (or normal sprites but the color alpha set to 0), it’s rather hacky, but does the job.
The clean solution: Make your own class extending the BaseRaycaster and come up with your own way of doing this.