Path tweening for anchoredPosition
Opened this issue · 4 comments
GoogleCodeExporter commented
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
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
- Changed state: Invalid
- Added labels: Type-Enhancement
GoogleCodeExporter commented
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
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
- Changed state: Accepted
- Added labels: Priority-Medium
GoogleCodeExporter commented
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