Open PixelEnvision opened 7 years ago
I've just tried the following and it seems to work that way, so the bug is definitely linked to DORestart.
One more piece of information that might be helpful. Animation component doesn't needs to be on the same button, it can be on a different object. As long as button calls DOResart, it triggers events twice.
As far as I've tested, this only happens with DORestart call.
Ahoy,
I tried to reproduce this, following the indications you gave including the extra animated object, but everything works correctly here. Can you attach a sample project that reproduces this issue?
Cheers, Daniele
You should see "Func Called" debug log posted twice on the console with a single button click.
Repo project attached. :) I'll write my full sys config next, just in case.
That's on Mac, High Sierra (Just in case if that matters some how) with Unity 2017.1.1p3
Latest DOTweenPro from the AssetStore (folder removed in repo of course)
Hi,
I've just tried upgrading one of my projects with dotween to 2017.1.1p3 (from 5.6.3p4) and noticed a regular UI button is not working as it's calling the onClick function twice when clicked.
It's a regular Unity UI button and it has punch/scale DoTweenAnimation attached to it. Button's onClick function does 3 things:
I found that the button works properly if I remove the DORestart call. Somehow it causes button to send onClick event twice.
Any thoughts?
DDTween 1.1.640 DOTweenPro 0.9.690