dotween
dotween copied to clipboard
DOJumpAnchorPos problem occured when use with .SetDelay()
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
Having the same issue