Skip to content

Incorrect execution sequence in LSequence #231

@shlapkoff

Description

@shlapkoff

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions