Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: saru on May 01, 2015, 06:20:48 PM

Title: [Feature request] DOTween Pro Tween any variable in components
Post by: saru on May 01, 2015, 06:20:48 PM
First of all hello and thanks for the awesome tweening engine.
It would be awesome to be able to use DOTween Pro with any variable inside another component.
Right now, you can animate most things in worldspace and you can tween a variable with code, but I think it would be a big win to have that in the Pro toolset.
Can it be done?
Title: Re: [Feature request] DOTween Pro Tween any variable in components
Post by: Daniele on May 01, 2015, 06:46:33 PM
Hi! And thanks to you for getting DOTween Pro :)


I agree that it would be cool to be able to animate any variable, and indeed my previous visual editor (HOTween Visual Editor) could do that. But the only way to do that is via Reflection, which makes everything run slower (even if it would've made my life much easier), so I avoided that. Still, I'm thinking of a possible alternative that might use Reflection only in the Editor, and actually write new C# classes to do the job at runtime. But I'm not sure if I'll really do that (because it has some pros but also some cons), and right now I'm prioritizing other features (like a Sequence Visual Editor).
Title: Re: [Feature request] DOTween Pro Tween any variable in components
Post by: saru on May 02, 2015, 09:02:58 PM
Ah, sounds like you already thought of it. I haven't used the HOTween.
Where can I read more about the Sequencer?
Also, is it possible to have bezier for DOTween path? For cases where Catmull Rom does a bad job at, I mean. :)

Thank you!
Title: Re: [Feature request] DOTween Pro Tween any variable in components
Post by: Daniele on May 03, 2015, 02:05:48 AM
There is nowhere to read about the Sequence Visual Editor: it's just in my personal "new features" list, and I don't want to advertize it until it's ready (especially since I still don't know the timing) :) In short, it will be like DOTweenAnimations, but instead of being attached to the target to tween, it will be a separate gameObject, and you will be able to add different gameObjects to it, with different tweens, to tween them as a group. It will also return a Sequence (http://dotween.demigiant.com/documentation.php#creatingSequence) instead of a Tween, in case one wants to do additional stuff via code.

About Bezier curves, they're actually in my todo list, but with very low priority, so I don't have a schedule for now.
Title: Re: [Feature request] DOTween Pro Tween any variable in components
Post by: saru on May 03, 2015, 10:37:41 AM
Sounds awesome.
Can't wait.
Title: Re: [Feature request] DOTween Pro Tween any variable in components
Post by: Daniele on May 03, 2015, 02:46:34 PM
Me neither :) The Sequencer was actually the main DOTween Animation editor I wanted to make. But I changed my mind because, with HOTween, users seemed to appreciate more a per-component system, contrary to my opinion. That said, I'm in a very bad period right now, but I hope to get more work on it for the end of the week.