var handle = LSequence.Create()
.Append(LMotion.Create(0, 1, 0.01f).Bind(x => Debug.Log($"[{Time.frameCount}] 1st: " + x)))
.Append(LMotion.Create(10, 11, 0.01f).Bind(x => Debug.Log($"[{Time.frameCount}] 2nd: " + x)))
.Append(LMotion.Create(100, 110, 0.01f).Bind(x => Debug.Log($"[{Time.frameCount}] 3rd: " + x)))
.Run();
// outputs
[1] 1st: 0
[1] 2nd: 10
[1] 3rd: 100
[1] 3rd: 100
[1] 2nd: 10
[1] 1st: 0
[2] 3rd: 100
[2] 1st: 1
[2] 2nd: 11
[3] 1st: 1
[3] 2nd: 11
[3] 3rd: 110
Does this mean the start and end values are updated every frame to keep things consistent while the LSequence is running? So it’s not great for heavy processing, right?
Does this mean the start and end values are updated every frame to keep things consistent while the LSequence is running? So it’s not great for heavy processing, right?