Hi,
I'm very glad you like DOTween
Virtual tweens can't be appended to Sequences. My bad for not pointing it out in the docs (just updated them to say it). Also because there's a much better way to do what you want, using the
generic way, which won't even need the UpdateTween method nor the extra aberrationRange variable, since it can tween imageEffect.chromaticAberration directly:
// Important: in this case you'll have to set the starting value directly before starting the tween
imageEffect.chromaticAberration = 0;
sequence.Append(DOTween.To(()=>imageEffect.chromaticAberration, x=> imageEffect.chromaticAberration = x, aberrationRange, tweenDuration));
sequence.Append(DOTween.To(()=>imageEffect.chromaticAberration, x=> imageEffect.chromaticAberration = x, -aberrationRange, tweenDuration));
sequence.Append(DOTween.To(()=>imageEffect.chromaticAberration, x=> imageEffect.chromaticAberration = x, 0, tweenDuration));
Cheers,
Daniele