MotionScheduler
Choose a PlayerLoop phase and a clock. Use an IgnoreTimeScale scheduler for a tween that should continue while the game is paused.
public static class MotionSchedulerMotionScheduler.cs · L43Animate UI while the game is paused
Add using MeatMotion;. Select UpdateIgnoreTimeScale for a fade that should keep playing while Time.timeScale is zero.
float alpha = 0f;
var fade = MMotion.Create(0f, 1f, 0.25f)
.WithScheduler(MotionScheduler.UpdateIgnoreTimeScale)
.Bind(v => alpha = v);
Members
- Initialization
- InitializationIgnoreTimeScale
- InitializationRealtime
- EarlyUpdate
- EarlyUpdateIgnoreTimeScale
- EarlyUpdateRealtime
- FixedUpdate
- PreUpdate
- PreUpdateIgnoreTimeScale
- PreUpdateRealtime
- Update
- UpdateIgnoreTimeScale
- UpdateRealtime
- PreLateUpdate
- PreLateUpdateIgnoreTimeScale
- PreLateUpdateRealtime
- PostLateUpdate
- PostLateUpdateIgnoreTimeScale
- PostLateUpdateRealtime
- TimeUpdate
- TimeUpdateIgnoreTimeScale
- TimeUpdateRealtime
- Manual
- DefaultScheduler
Initialization
Update in the Initialization phase using scaled time.
public static readonly IMotionScheduler Initialization;InitializationIgnoreTimeScale
Update in the Initialization phase using unscaled time.
public static readonly IMotionScheduler InitializationIgnoreTimeScale;InitializationRealtime
Update in the Initialization phase using real time.
public static readonly IMotionScheduler InitializationRealtime;EarlyUpdate
Update in the EarlyUpdate phase using scaled time.
public static readonly IMotionScheduler EarlyUpdate;EarlyUpdateIgnoreTimeScale
Update in the EarlyUpdate phase using unscaled time.
public static readonly IMotionScheduler EarlyUpdateIgnoreTimeScale;EarlyUpdateRealtime
Update in the EarlyUpdate phase using real time.
public static readonly IMotionScheduler EarlyUpdateRealtime;FixedUpdate
Update in the FixedUpdate phase using scaled time.
public static readonly IMotionScheduler FixedUpdate;PreUpdate
Update in the PreUpdate phase using scaled time.
public static readonly IMotionScheduler PreUpdate;PreUpdateIgnoreTimeScale
Update in the PreUpdate phase using unscaled time.
public static readonly IMotionScheduler PreUpdateIgnoreTimeScale;PreUpdateRealtime
Update in the PreUpdate phase using real time.
public static readonly IMotionScheduler PreUpdateRealtime;Update
Update in the Update phase using scaled time.
public static readonly IMotionScheduler Update;UpdateIgnoreTimeScale
Update in the Update phase using unscaled time.
public static readonly IMotionScheduler UpdateIgnoreTimeScale;UpdateRealtime
Update in the Update phase using real time.
public static readonly IMotionScheduler UpdateRealtime;PreLateUpdate
Update in the PreLateUpdate phase using scaled time.
public static readonly IMotionScheduler PreLateUpdate;PreLateUpdateIgnoreTimeScale
Update in the PreLateUpdate phase using unscaled time.
public static readonly IMotionScheduler PreLateUpdateIgnoreTimeScale;PreLateUpdateRealtime
Update in the PreLateUpdate phase using real time.
public static readonly IMotionScheduler PreLateUpdateRealtime;PostLateUpdate
Update in the PostLateUpdate phase using scaled time.
public static readonly IMotionScheduler PostLateUpdate;PostLateUpdateIgnoreTimeScale
Update in the PostLateUpdate phase using unscaled time.
public static readonly IMotionScheduler PostLateUpdateIgnoreTimeScale;PostLateUpdateRealtime
Update in the PostLateUpdate phase using real time.
public static readonly IMotionScheduler PostLateUpdateRealtime;TimeUpdate
Update in the TimeUpdate phase using scaled time.
public static readonly IMotionScheduler TimeUpdate;TimeUpdateIgnoreTimeScale
Update in the TimeUpdate phase using unscaled time.
public static readonly IMotionScheduler TimeUpdateIgnoreTimeScale;TimeUpdateRealtime
Update in the TimeUpdate phase using real time.
public static readonly IMotionScheduler TimeUpdateRealtime;Manual
Schedule into the default ManualMotionDispatcher.
public static IMotionScheduler Manual { get; }DefaultScheduler
Get or set the scheduler used when none is specified.
public static IMotionScheduler DefaultScheduler { get; set; }
MeatMotion