Demigiant / dotween

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

Request: DOTween.Sequence(target) #442

Open Arakade opened 4 years ago

Arakade commented 4 years ago

Please could you add a Sequence factory method that allows providing the target at the same time?

I recently had a bug where certain tweens weren't getting killed. It turned out the problem was they were in Sequences and I hadn't realised they don't take on the target of their tweens (since I always use the convenience methods, I had forgotten about them!). I've now gone back through the whole codebase to change all Sequence creation to immediately after have a call to seq.SetTarget(transform) (or whatever). It would be much nicer to have the API 'recommend' this course to you (via autocomplete recommendations) to avoid these sorts of bugs in the future.

Thanks as always (from a Pro user :) ).

Demigiant commented 4 years ago

Ahoy! I like that suggestion very very much :) What about this?

dotweenSequence_01

dotweenSequence_02