-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
When creating a sequence on an object, values are applied that should only be applied taking into account the delay.
public void Test(Transform tr)
{
var sequence = LSequence.Create();
sequence.Insert(0f, LMotion.Create(Vector3.one, new Vector3(3f, 3f, 3f), 1f).WithEase(Ease.InSine).BindToLocalScale(tr.transform));
sequence.Insert(1f, LMotion.Create(new Vector3(3f, 3f, 3f), Vector3.one, 1f).WithEase(Ease.InSine).BindToLocalScale(tr.transform));
MotionHandle handle = sequence.Run();
}
The unintended behavior occurs because the second tween prematurely applies its starting value (new Vector3(3f, 3f, 3f)) when the sequence is being created, even though it is only supposed to take effect after the first tween finishes.
Metadata
Metadata
Assignees
Labels
No labels