Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pakl

Pages: [1]
1
First, thanks for the reply and the correction of the tween itself.

I figured out what the problem was. I preferred to not include
Code: [Select]
using DG.Tweening; and unfortunately it seems that all the SetX() methods are implemented as extension methods. Therefore, if the namespace is not included, these methods are simply not available.

It's an odd choice to implement core functionality as extension methods, rather than directly on the Tweening object. Any particular reason for this?

2
I'm trying to animate Time.timescale using an easing function.

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).

Pages: [1]