akhilkrushnaa / hotween

Automatically exported from code.google.com/p/hotween
0 stars 0 forks source link

Animate multiple properties with the same Tweener #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
ISSUE:
Sometimes we want to change multiple properties by using a single Tweener. But 
the current ".Prop(propName, value)" approach limits this to happen within a 
*single scope*.

EXAMPLE:
I may want an object to move position (1), in scope { Vector3 
obj.transform.position } WHILE it also changes the opacity (2) in scope { 
objRenderer.material.color.a }

SUGGESTION:
Provide an extra signature for the Prop() method with an "scope" parameter.

- PS: Really nice job @HOTween. Congrats!

Original issue reported on code.google.com by alv...@noalvaro.com on 11 Jul 2015 at 4:43

GoogleCodeExporter commented 8 years ago
Hi,

Very glad you like DOTween :)

If you want to control tweens with different targets as if they were one, you 
can already do that with Sequences (note that the tweens contained in a 
Sequence don't need to be in a sequence: yes I know, terrible name choice).

I don't plan to add an option to do that inside a basic Tweener, because that 
would require some heavy architectural changes, which would also make regular 
single-target tweens slower.

Cheers,
Daniele

Original comment by daniele....@gmail.com on 11 Jul 2015 at 5:54

GoogleCodeExporter commented 8 years ago
P.S. woops I meant HOTween, not DOTween (in DOTween I completely removed the 
option to even tween different properties with the same target, because I 
didn't deem it efficient enough) ;)

Original comment by daniele....@gmail.com on 11 Jul 2015 at 5:55