diff --git a/src/LitMotion/Assets/LitMotion/Tests/Runtime/SchedulerTest.cs b/src/LitMotion/Assets/LitMotion/Tests/Runtime/SchedulerTest.cs index acd7a102..ee47477a 100644 --- a/src/LitMotion/Assets/LitMotion/Tests/Runtime/SchedulerTest.cs +++ b/src/LitMotion/Assets/LitMotion/Tests/Runtime/SchedulerTest.cs @@ -94,6 +94,18 @@ public IEnumerator Test_Scheduler_Update() .ToYieldInteraction(); } + [UnityTest] + public IEnumerator Test_Scheduler_Update_WithHalfTimeScale() + { + Time.timeScale = 0.5f; + var t = Time.unscaledTimeAsDouble; + yield return LMotion.Create(0f, 10f, Duration) + .WithScheduler(MotionScheduler.Update) + .RunWithoutBinding() + .ToYieldInteraction(); + Assert.That(Time.unscaledTimeAsDouble - t, Is.GreaterThan(Duration * 2f)); + } + [UnityTest] public IEnumerator Test_Scheduler_Update_IgnoreTimeScale() {