Fusion
Fusion copied to clipboard
TweenInfo state changes don't affect in-progress Tweens
A Tween with a computed TweenInfo will animate with the value of the TweenInfo state at the time of the tween's underlying value changing. This means that a computed TweenInfo dependent on the same state as the Tween will not update the Tween. Therefore TweenInfo cannot change based on the underlying value.
Example case where there are conflicts: A progress bar which changes its animation depending on if the progress has increased or if the progress has decreased. For example, if the progress is increasing being a smooth transition, but if it's decreasing, being an instantaneous transition (E.g. TweenInfo.new(0)
).
This can be worked around by manually updating the TweenInfo state before the state the Tween is dependent on is updated.