Spamming DOPunch translation offsets
« on: May 26, 2015, 09:45:37 PM »
I have a button that, when clicked, causes a DOPunch tween on a rectTransform. When spamming the button, it seems that the punch animation uses the position that the rectTransform is in at that current moment rather than its original position. This means that for a DOPunchAnchorPos, the rect eventually hops off the screen as the offset grows. Any ideas on what to do to fix this problem?

Re: Spamming DOPunch translation offsets
« Reply #1 on: June 15, 2015, 07:20:12 PM »
I had the same issue. To remedy it I added an OnComplete method to the DOPunch tween to reset the transform to its original scale.

I do believe this is a bug, and DOTween should handle the scenario without additional coding from us :D