Choose an update phase and clock
The default scheduler updates in the normal Update phase. Select a scheduler before Bind for paused UI, physics or an externally driven test.
| Task | Scheduler | Clock |
|---|---|---|
| Ordinary gameplay tween | MotionScheduler.Update | Scaled Update time |
| UI during a pause | MotionScheduler.UpdateIgnoreTimeScale | Unscaled Update time |
| Physics steps | MotionScheduler.FixedUpdate | Scaled fixed-step time |
| An editor tool | EditorMotionScheduler.Update | Editor updates, from an editor assembly |
| Supply your own deltas | A new MotionWorld | world.Tick(deltaTime) |
| Per-type manual storage | ManualMotionDispatcher.Scheduler | dispatcher.Update(deltaTime) |
Isolate a test with MotionWorld
Calling Tick(0.25) advances only the world selected by the builder's WithScheduler call. A separate world can remain at zero. To inspect an earlier position at a positive playback speed, set Time on the root handle. MotionWorld.Tick rejects negative and non-finite deltas. Tick example and declaration · Seek with Time
Adding a type after the manual clock has advanced
ManualMotionDispatcher keeps a world for each value, options and adapter combination. A combination first used after the clock has advanced starts at zero and catches up to the dispatcher on its first update.
When comparing different motion types from the same starting instant, register them before the first Update. You can also create a new dispatcher for each test. ManualMotionDispatcher.Update · PlayerLoop schedulers
MeatMotion