1
DOTween & DOTween Pro / Where is all the SetX() functionality when using DoTween.TOX?
« on: September 22, 2015, 04:20:39 AM »
I'm trying to animate Time.timescale using an easing function.
Tweening the value itself seems to work:
But all the SetX() methods mentioned in the documentation are not available on the object this returns and while I found out that I could set the `timeScale` property, there doesn't seem to be any way to use an easing function for this tween.
What am I missing?
(cross posted from http://stackoverflow.com/questions/32707355/how-do-you-animate-unity-time-timescale-using-an-easing-function-with-dotween, since SO doesn't seem to have a lot of DOTween questions).
Tweening the value itself seems to work:
Code: [Select]
DG.Tweening.DOTween.To(value => Time.timeScale = value, 1, 0, 0.4f);
But all the SetX() methods mentioned in the documentation are not available on the object this returns and while I found out that I could set the `timeScale` property, there doesn't seem to be any way to use an easing function for this tween.
What am I missing?
(cross posted from http://stackoverflow.com/questions/32707355/how-do-you-animate-unity-time-timescale-using-an-easing-function-with-dotween, since SO doesn't seem to have a lot of DOTween questions).