MotionScheduler
UnityのPlayerLoopフェーズと時計を選びます。ポーズ中も進める場合はIgnoreTimeScaleの付いたスケジューラを指定できます。
public static class MotionSchedulerMotionScheduler.cs · L43UIをゲームの時間倍率から切り離す
using MeatMotion; を追加します。フェードの残り時間がTime.timeScaleに左右されないようにUpdateIgnoreTimeScaleを選びます。不要になったらハンドルをキャンセルできます。
float alpha = 0f;
var fade = MMotion.Create(0f, 1f, 0.25f)
.WithScheduler(MotionScheduler.UpdateIgnoreTimeScale)
.Bind(v => alpha = v);
メンバー
- 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
PlayerLoopのInitializationでスケール時間を使って更新します。
public static readonly IMotionScheduler Initialization;InitializationIgnoreTimeScale
PlayerLoopのInitializationで非スケール時間を使って更新します。
public static readonly IMotionScheduler InitializationIgnoreTimeScale;InitializationRealtime
PlayerLoopのInitializationで実時間を使って更新します。
public static readonly IMotionScheduler InitializationRealtime;EarlyUpdate
PlayerLoopのEarlyUpdateでスケール時間を使って更新します。
public static readonly IMotionScheduler EarlyUpdate;EarlyUpdateIgnoreTimeScale
PlayerLoopのEarlyUpdateで非スケール時間を使って更新します。
public static readonly IMotionScheduler EarlyUpdateIgnoreTimeScale;EarlyUpdateRealtime
PlayerLoopのEarlyUpdateで実時間を使って更新します。
public static readonly IMotionScheduler EarlyUpdateRealtime;FixedUpdate
PlayerLoopのFixedUpdateでスケール時間を使って更新します。
public static readonly IMotionScheduler FixedUpdate;PreUpdate
PlayerLoopのPreUpdateでスケール時間を使って更新します。
public static readonly IMotionScheduler PreUpdate;PreUpdateIgnoreTimeScale
PlayerLoopのPreUpdateで非スケール時間を使って更新します。
public static readonly IMotionScheduler PreUpdateIgnoreTimeScale;PreUpdateRealtime
PlayerLoopのPreUpdateで実時間を使って更新します。
public static readonly IMotionScheduler PreUpdateRealtime;Update
PlayerLoopのUpdateでスケール時間を使って更新します。
public static readonly IMotionScheduler Update;UpdateIgnoreTimeScale
PlayerLoopのUpdateで非スケール時間を使って更新します。
public static readonly IMotionScheduler UpdateIgnoreTimeScale;UpdateRealtime
PlayerLoopのUpdateで実時間を使って更新します。
public static readonly IMotionScheduler UpdateRealtime;PreLateUpdate
PlayerLoopのPreLateUpdateでスケール時間を使って更新します。
public static readonly IMotionScheduler PreLateUpdate;PreLateUpdateIgnoreTimeScale
PlayerLoopのPreLateUpdateで非スケール時間を使って更新します。
public static readonly IMotionScheduler PreLateUpdateIgnoreTimeScale;PreLateUpdateRealtime
PlayerLoopのPreLateUpdateで実時間を使って更新します。
public static readonly IMotionScheduler PreLateUpdateRealtime;PostLateUpdate
PlayerLoopのPostLateUpdateでスケール時間を使って更新します。
public static readonly IMotionScheduler PostLateUpdate;PostLateUpdateIgnoreTimeScale
PlayerLoopのPostLateUpdateで非スケール時間を使って更新します。
public static readonly IMotionScheduler PostLateUpdateIgnoreTimeScale;PostLateUpdateRealtime
PlayerLoopのPostLateUpdateで実時間を使って更新します。
public static readonly IMotionScheduler PostLateUpdateRealtime;TimeUpdate
PlayerLoopのTimeUpdateでスケール時間を使って更新します。
public static readonly IMotionScheduler TimeUpdate;TimeUpdateIgnoreTimeScale
PlayerLoopのTimeUpdateで非スケール時間を使って更新します。
public static readonly IMotionScheduler TimeUpdateIgnoreTimeScale;TimeUpdateRealtime
PlayerLoopのTimeUpdateで実時間を使って更新します。
public static readonly IMotionScheduler TimeUpdateRealtime;Manual
既定のManualMotionDispatcherの手動更新に登録します。
public static IMotionScheduler Manual { get; }DefaultScheduler
スケジューラを指定しなかった場合に使用する登録先を取得・設定します。
public static IMotionScheduler DefaultScheduler { get; set; }
MeatMotion