850176300 / dotween

Automatically exported from code.google.com/p/dotween
0 stars 0 forks source link

Path tweening for anchoredPosition #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

It would be nice to have something like DOPath for Unity 4.6 UI elements. For 
now we can only tween anchoredPosition.

Thank you in advance!

Original issue reported on code.google.com by z...@zoom-group.ru on 13 Feb 2015 at 9:23

GoogleCodeExporter commented 8 years ago
Hello,

you can already use paths with UI elements, you just have to use their 
transforms as a target :)

myImage.transform.DOPath(waypoints, duration);

Original comment by daniele....@gmail.com on 13 Feb 2015 at 11:16

GoogleCodeExporter commented 8 years ago
Hi,

Thank you. It's more or less true, but this solution doesn't take UI Scaler 
into account. So you have to recalculate Rect Transform to Transform (or 
anchoredPosition to position, which is, I think, the same).

Original comment by z...@zoom-group.ru on 16 Feb 2015 at 8:18

GoogleCodeExporter commented 8 years ago
I didn't consider that. Adding it to my todo list. In short, I should add a 
RectTransform DOPath shortcut, right?

Original comment by daniele....@gmail.com on 23 Feb 2015 at 11:57

GoogleCodeExporter commented 8 years ago
Yes, DOPath shortcut to RectTransform is the thing I'm dreaming of :)

Original comment by z...@zoom-group.ru on 24 Feb 2015 at 2:26