You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassTestSceneScratch:FrameworkTestScene{[Test]publicvoidTestMethod1()=> AddStep("reset",()=>{varbox=new Box {Size=new Vector2(100)};Child=box;using(box.BeginAbsoluteSequence(Time.Current -1000)){ box.FadeColour(Color4.Green)// Transform in the past.Delay(2000).FadeColour(Color4.White)// Transform a little in the future.Delay(10000).Expire(true);// Delay is not important}});[Test]publicvoidTestMethod2()=> AddStep("reset",()=>{varbox=new Box {Size=new Vector2(100)};Child=box;using(box.BeginAbsoluteSequence(Time.Current -1000)){ box.FadeColour(Color4.Green).Expire(true);// Transform in the past box.Delay(2000).FadeColour(Color4.White)// Transform a little in the future.Delay(10000).Expire();// Delay is not important}});}
Both of the methods above are expected to work exactly the same, however only method 2 provides the expected result. The lifetime of the box is expected to be the full range of green -> white.
It seems like since the past transform is immediately applied (due to endtime < current time), the .Expire(true) call from a nested TransformSequence does not consider it.
The text was updated successfully, but these errors were encountered:
Both of the methods above are expected to work exactly the same, however only method 2 provides the expected result. The lifetime of the box is expected to be the full range of green -> white.
It seems like since the past transform is immediately applied (due to endtime < current time), the
.Expire(true)
call from a nestedTransformSequence
does not consider it.The text was updated successfully, but these errors were encountered: