# MotionScheduler

UnityのPlayerLoopフェーズと時計を選びます。ポーズ中も進める場合はIgnoreTimeScaleの付いたスケジューラを指定できます。

Namespace: MeatMotion

Assembly: MeatMotion

```csharp
public static class MotionScheduler
```

[Runtime/Scheduling/MotionScheduler.cs · L43](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L43)

## UIをゲームの時間倍率から切り離す

`using MeatMotion;` を追加します。フェードの残り時間がTime.timeScaleに左右されないようにUpdateIgnoreTimeScaleを選びます。不要になったらハンドルをキャンセルできます。

```csharp
float alpha = 0f;
var fade = MMotion.Create(0f, 1f, 0.25f)
    .WithScheduler(MotionScheduler.UpdateIgnoreTimeScale)
    .Bind(v => alpha = v);
```

## Initialization

PlayerLoopのInitializationでスケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler Initialization;
```

[Runtime/Scheduling/MotionScheduler.cs · L52](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L52)

## InitializationIgnoreTimeScale

PlayerLoopのInitializationで非スケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler InitializationIgnoreTimeScale;
```

[Runtime/Scheduling/MotionScheduler.cs · L53](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L53)

## InitializationRealtime

PlayerLoopのInitializationで実時間を使って更新します。

```csharp
public static readonly IMotionScheduler InitializationRealtime;
```

[Runtime/Scheduling/MotionScheduler.cs · L54](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L54)

## EarlyUpdate

PlayerLoopのEarlyUpdateでスケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler EarlyUpdate;
```

[Runtime/Scheduling/MotionScheduler.cs · L55](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L55)

## EarlyUpdateIgnoreTimeScale

PlayerLoopのEarlyUpdateで非スケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler EarlyUpdateIgnoreTimeScale;
```

[Runtime/Scheduling/MotionScheduler.cs · L56](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L56)

## EarlyUpdateRealtime

PlayerLoopのEarlyUpdateで実時間を使って更新します。

```csharp
public static readonly IMotionScheduler EarlyUpdateRealtime;
```

[Runtime/Scheduling/MotionScheduler.cs · L57](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L57)

## FixedUpdate

PlayerLoopのFixedUpdateでスケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler FixedUpdate;
```

[Runtime/Scheduling/MotionScheduler.cs · L58](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L58)

## PreUpdate

PlayerLoopのPreUpdateでスケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler PreUpdate;
```

[Runtime/Scheduling/MotionScheduler.cs · L59](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L59)

## PreUpdateIgnoreTimeScale

PlayerLoopのPreUpdateで非スケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler PreUpdateIgnoreTimeScale;
```

[Runtime/Scheduling/MotionScheduler.cs · L60](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L60)

## PreUpdateRealtime

PlayerLoopのPreUpdateで実時間を使って更新します。

```csharp
public static readonly IMotionScheduler PreUpdateRealtime;
```

[Runtime/Scheduling/MotionScheduler.cs · L61](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L61)

## Update

PlayerLoopのUpdateでスケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler Update;
```

[Runtime/Scheduling/MotionScheduler.cs · L62](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L62)

## UpdateIgnoreTimeScale

PlayerLoopのUpdateで非スケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler UpdateIgnoreTimeScale;
```

[Runtime/Scheduling/MotionScheduler.cs · L63](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L63)

## UpdateRealtime

PlayerLoopのUpdateで実時間を使って更新します。

```csharp
public static readonly IMotionScheduler UpdateRealtime;
```

[Runtime/Scheduling/MotionScheduler.cs · L64](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L64)

## PreLateUpdate

PlayerLoopのPreLateUpdateでスケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler PreLateUpdate;
```

[Runtime/Scheduling/MotionScheduler.cs · L65](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L65)

## PreLateUpdateIgnoreTimeScale

PlayerLoopのPreLateUpdateで非スケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler PreLateUpdateIgnoreTimeScale;
```

[Runtime/Scheduling/MotionScheduler.cs · L66](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L66)

## PreLateUpdateRealtime

PlayerLoopのPreLateUpdateで実時間を使って更新します。

```csharp
public static readonly IMotionScheduler PreLateUpdateRealtime;
```

[Runtime/Scheduling/MotionScheduler.cs · L67](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L67)

## PostLateUpdate

PlayerLoopのPostLateUpdateでスケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler PostLateUpdate;
```

[Runtime/Scheduling/MotionScheduler.cs · L68](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L68)

## PostLateUpdateIgnoreTimeScale

PlayerLoopのPostLateUpdateで非スケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler PostLateUpdateIgnoreTimeScale;
```

[Runtime/Scheduling/MotionScheduler.cs · L69](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L69)

## PostLateUpdateRealtime

PlayerLoopのPostLateUpdateで実時間を使って更新します。

```csharp
public static readonly IMotionScheduler PostLateUpdateRealtime;
```

[Runtime/Scheduling/MotionScheduler.cs · L70](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L70)

## TimeUpdate

PlayerLoopのTimeUpdateでスケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler TimeUpdate;
```

[Runtime/Scheduling/MotionScheduler.cs · L71](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L71)

## TimeUpdateIgnoreTimeScale

PlayerLoopのTimeUpdateで非スケール時間を使って更新します。

```csharp
public static readonly IMotionScheduler TimeUpdateIgnoreTimeScale;
```

[Runtime/Scheduling/MotionScheduler.cs · L72](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L72)

## TimeUpdateRealtime

PlayerLoopのTimeUpdateで実時間を使って更新します。

```csharp
public static readonly IMotionScheduler TimeUpdateRealtime;
```

[Runtime/Scheduling/MotionScheduler.cs · L73](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L73)

## Manual

既定のManualMotionDispatcherの手動更新に登録します。

```csharp
public static IMotionScheduler Manual { get; }
```

[Runtime/Scheduling/MotionScheduler.cs · L74](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L74)

## DefaultScheduler

スケジューラを指定しなかった場合に使用する登録先を取得・設定します。

```csharp
public static IMotionScheduler DefaultScheduler { get; set; }
```

[Runtime/Scheduling/MotionScheduler.cs · L75](../../source/Runtime/Scheduling/MotionScheduler.cs.html#L75)

## 関連する型

- [IMotionScheduler](../../api/imotionscheduler/index.md)

- [ManualMotionDispatcher](../../api/manualmotiondispatcher/index.md)

- [MotionTimeKind](../../api/motiontimekind/index.md)
