1
DOTween & DOTween Pro / Tween overwriting
« on: March 30, 2016, 03:21:41 PM »
Hi, question about overwriting tweens.
Wanted to confirm that tween 'overwriting' isn't a feature that already exists. For example, using scripts I've applied DOTWEEN to handle animation between different states of gameobjects (such as a mouse over/out). The problem is that applying an animation can come into conflict with those that are not yet complete -- so the previous animation has to be explicitly killed before applying the new one when it affects the same properties.
Is there a simple built-in way to combat this? My current less-than-ideal solution is using another layer of code above DOTWEEN to handle setting animations, which kills previous ones itself.
Wanted to confirm that tween 'overwriting' isn't a feature that already exists. For example, using scripts I've applied DOTWEEN to handle animation between different states of gameobjects (such as a mouse over/out). The problem is that applying an animation can come into conflict with those that are not yet complete -- so the previous animation has to be explicitly killed before applying the new one when it affects the same properties.
Is there a simple built-in way to combat this? My current less-than-ideal solution is using another layer of code above DOTWEEN to handle setting animations, which kills previous ones itself.