Demigiant / dotween

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

Allow DOTweenAnimation to specify starting value #513

Open NibbleByte opened 2 years ago

NibbleByte commented 2 years ago

Hello,

We consider this to be a missing feature. DOTweenAnimation should allow (optionally) to specify what value it should start from instead of the current value left in the editor. Here is a simple use case:

At the moment it seems impossible to set the starting value (no matter TO/FROM) of the tween. It will always flash from white to orange. There are ways to go around this, but it would be simpler if DOTweenAnimation supported this.

We ended up extending it, adding "Start Value" option. It hooks up right before tween creation and sets the specified value, so the DOTween created finds this as initial value. It is kind of a hack indeed. Had to fix the preview as well to restore it on stop. image

DOTween v1.2..632 DOTweenPro v1.0.310

Cheers

Demigiant commented 2 years ago

Ahoy! Adding this to my TODO list :)

allenz8512 commented 2 years ago

Snipaste_2022-08-28_18-03-30

same issue,we even add feature to set value on tween complete, for using dotween for interruptable ui animation

seoyeon01 commented 1 year ago

Has this function been updated? Can I specify Start Value?

Eugen1344 commented 6 months ago

I need this feature too, was Googling to find it