Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.33k stars 348 forks source link

When I get a tween, how can I know that how much time it last / left ? #554

Closed atkdefender closed 2 years ago

atkdefender commented 2 years ago

I want to kill a running tween, then create a new one. But the totally running time must keep the same.

Demigiant commented 2 years ago

Ahoy,

You can get a tween's duration via myTween.Duration() and subtract from it myTween.Elapsed()

More here: http://dotween.demigiant.com/documentation.php#gettingData

Cheers, Daniele

atkdefender commented 2 years ago

Ahoy,

You can get a tween's duration via myTween.Duration() and subtract from it myTween.Elapsed()

More here: http://dotween.demigiant.com/documentation.php#gettingData

Cheers, Daniele

Thx! I thought that will be a value so I miss it.