Just a query, hoping someone could shed some light on?
The general UIButton behaviour causes animations to be tied to how long a button is pressed, i.e. if you tap quickly the effect is barely noticeable. Whilst this has been fine for most ui's, some more recent request have required custom animations on the button to be played at the same duration, no matter how long the button is pressed.
I've had to do this for every button, creating custom scripts, so onclick fires the animation routine, when complete resets etc...
is there a quicker way of achieving the same. Some things will have to be done by script, but for general purpose? Suppose the same could be achieved by using a bunch of components, tween groups and an event to fire it, but am I missing something more obvious?
I've used Tweens wherever possible in this particular project, in case they have to be fired between states. Just wondering on a side note, anyone noticed any optimization benefits of using code over components for tweens, or tweens over animations? etc..
Thanks in advance..