1
NGUI 3 Support / Increase button collider size while pressed like iOS
« on: May 29, 2014, 10:02:09 PM »
In the past NGUI didn't have a behavior that I really wanted. In iOS when a button is pressed the collider, or whatever Apple might call it, increases in size as long as the finger doesn't stop touching the screen and is still over the collider.
This behavior really helps touch based applications feel better, especially if the buttons are many, small, and close together. Users constantly start touches inside small buttons just fine but have a hard time releasing their finger in just the right way as to keep the touch point inside the collider.
My question is: did NGUI ever have this feature added and if so how do I enable it? If not, what might be a good approach to scripting it up myself?
Said behavior in more detail: when a user begins touching over a button, the button's collider grows a given amount (generally adding about a half of a finger tip's width around the whole button). If the user drags off the collider it returns to normal size. If they drag back on to the (now normal size) collider it again grows until they drag back off of it or lift their finger anywhere. Lifting inside the collider of course fires the click event.
Thanks!!
This behavior really helps touch based applications feel better, especially if the buttons are many, small, and close together. Users constantly start touches inside small buttons just fine but have a hard time releasing their finger in just the right way as to keep the touch point inside the collider.
My question is: did NGUI ever have this feature added and if so how do I enable it? If not, what might be a good approach to scripting it up myself?
Said behavior in more detail: when a user begins touching over a button, the button's collider grows a given amount (generally adding about a half of a finger tip's width around the whole button). If the user drags off the collider it returns to normal size. If they drag back on to the (now normal size) collider it again grows until they drag back off of it or lift their finger anywhere. Lifting inside the collider of course fires the click event.
Thanks!!
