Demigiant / dotween

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

Change tween end or begin values #58

Open frideal opened 8 years ago

frideal commented 8 years ago

when I want to reuse tweener by changing the Tween's end and begin values, will DOTween create a new tweener instance for me? call function:

  1. public abstract Tweener ChangeValues(object newStartValue, object newEndValue, float newDuration = -1F);
  2. public abstract Tweener ChangeStartValue(object newStartValue, float newDuration = -1F);

create new tween instance? or just reuse the tween.

frideal commented 8 years ago

If I call Tweener.ChangeValues in the Unity3d profiler i will see I make about 56byte GC alloc.Can any method to reduce this GC alloc?

Unity5.2.2