- Home /
How to start a Dotween in between a sequence?
Lets say I have an Object object1
which is moved by a Dotween sequence in 0.2f seconds. Now I want another object object2
to start moving when object1
is moved half the way, so after 0.1f seconds.
Is there something like .append
, that doesn't start after but in between the sequence, or do I have to make a move around?
Comment
Answer by Stiexeno · Feb 18 at 08:28 PM
public Transform object1;
public Transform object2;
private Sequence sequence;
public void RunDotweenAnimation()
{
sequence = DOTween.Sequence();
sequence.Append(object1.DOMove(Vector3.one, 1f));
sequence.Join(object2.DOMove(Vector3.one, 1f)).SetDelay(0.5f);
}