dotween icon indicating copy to clipboard operation
dotween copied to clipboard

DOJumpAnchorPos problem occured when use with .SetDelay()

Open bodinmon opened this issue 5 years ago • 1 comments

Hi,

My code is very simple.

RectTransform recttran = obj.GetComponent<RectTransform>(); Vector2 originalPos = recttran.anchoredPosition; recttran.DOJumpAnchorPos(originalPos, 30f, 1, 2f, true);

everything works fine until I added SetDelay()

recttran.DOJumpAnchorPos(originalPos, 30f, 1, 2f, true).SetDelay(1.55f);

The final Y-value of the anchoredPosition is now over 3000, that made the object final out of screen.

My work around is, using Invoke() to do the delay instead. Could you please check what's the cause of this problem?

Thank in advance & Best regards

bodinmon avatar Jul 09 '20 04:07 bodinmon

Having the same issue

ImaginaryWorldsInc avatar Oct 13 '24 14:10 ImaginaryWorldsInc