Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: GregTheCoder on December 07, 2015, 02:27:18 PM

Title: Tweener.timescale not working
Post by: GregTheCoder on December 07, 2015, 02:27:18 PM
Like in topic: when i'm trying to change timescale of Tweener returns by DOPath, nothings changing. I must add that its not working after Tweener.Play(), but when its change before or in same Update its working... But i need to change it few times on path.
Title: Re: Tweener.timescale not working
Post by: Daniele on December 07, 2015, 02:49:17 PM
Hi,

I'm working on a project right now where I manipulate DOPath's timeScale a lot, and everything works correctly here. Are you sure you're not setting the timeScale back to its original value somewhere else in your code after Update?

Cheers,
Daniele
Title: Re: Tweener.timescale not working
Post by: GregTheCoder on December 07, 2015, 03:24:23 PM
Sorry it was my mistake - had two same-name fileds and initializing only local.
But now i have bigger problem! Unity is crashing when im using SetLookAt :(
Title: Re: Tweener.timescale not working
Post by: GregTheCoder on December 07, 2015, 04:47:55 PM
Ok, after many tests i done what i want. But strange thing is that i need to set "up" argument (in SetLookAt(...)) to Vector3.right... (?)
Title: Re: Tweener.timescale not working
Post by: Daniele on December 08, 2015, 11:50:33 AM
Not sure about the up argument. You mean SetLookAt is crashing unless you set that to Vector3.right? This would be the first time I hear this, and it is very weird. Could you show me more of what you're trying to animate (even an animated gif would be interesting) and the code you're using?