# APIリファレンス

MeatMotionの公開型108件を、C#の型名やメンバー名から引けます。各項目に宣言、必要なアセンブリ、実装箇所を掲載しています。

## Tweenと設定

- [DelayType](../api/delaytype/index.md) — 遅延を最初のループだけに入れるか、各ループの前に入れるかを選びます。

- [Ease](../api/ease/index.md) — MMotionのビルダーに渡すイーズの種類です。組み込み曲線のほかにAnimationCurveを渡せます。

- [EaseUtility](../api/easeutility/index.md) — 時刻を正規化した入力tからイーズ適用後の進捗を計算します。値の書き込みやTweenの登録は行いません。

- [Easing](../api/easing/index.md) — MMotionやLocalPositionTweensで使うイーズの列挙型です。各曲線は同名のEaseUtility関数でも評価できます。

- [FloatMotionBuilder](../api/floatmotionbuilder/index.md) — MMotion.Createで作るfloat専用ビルダーです。状態を引数で受け取るBindを使うと、書き込み先をラムダにキャプチャせずに渡せます。

- [IMotionAdapter<TValue, TOptions>](../api/imotionadapter-2/index.md) — 独自のunmanaged値型用の補間を定義します。Evaluateには始点・終点、オプション、イーズ適用後の進捗と時刻が渡されます。

- [IMotionOptions](../api/imotionoptions/index.md) — アダプターのオプション型に付けるマーカーです。オプションを持たない型にはNoOptionsを指定できます。

- [IntegerOptions](../api/integeroptions/index.md) — int・longの補間結果を整数へ戻すときの丸め規則を指定します。

- [LoopType](../api/looptype/index.md) — 繰り返し時の進捗とイーズの向きを指定します。ループ数はビルダーのWithLoopsで指定します。

- [MMotion](../api/mmotion/index.md) — 開始値・終了値・秒数からTweenを作ります。floatの端点にはFloatMotionBuilderを返します。

- [MMotion.Punch](../api/mmotion-punch/index.md) — 初期値に振動を加えて戻すTweenを作ります。float、Vector2、Vector3の強さを指定できます。

- [MMotion.Shake](../api/mmotion-shake/index.md) — 初期値の周りを揺らすTweenを作ります。周波数・減衰・乱数シード・ノイズの種類を設定できます。

- [MMotion.String](../api/mmotion-string/index.md) — Unity.CollectionsのFixedStringの容量ごとに文字列Tweenを作成します。リッチテキストやスクランブル文字はビルダーで設定します。

- [MotionBuilderExtensions](../api/motionbuilderextensions/index.md) — 値型の状態を渡すBind、整数の丸め、文字列のスクランブル、Punch・Shakeの振動設定を追加します。

- [MotionBuilder<TValue, TOptions, TAdapter>](../api/motionbuilder-3/index.md) — 値型、オプション、アダプターを持つビルダーです。イーズ、ループ、通知、更新タイミングを設定し、Bindで登録します。

- [MotionEvaluationContext](../api/motionevaluationcontext/index.md) — アダプターが値を計算するときに参照する、イーズ適用後の進捗とTweenの経過時間です。

- [MotionSettings<TValue, TOptions>](../api/motionsettings-2/index.md) — 開始値・終了値、時間、イーズ、ループ、書き込み設定をレコードとして保存し、複数のTween作成に使えます。

- [NoOptions](../api/nooptions/index.md) — アダプター固有の設定を持たないTweenに渡す空の値型です。

- [PunchOptions](../api/punchoptions/index.md) — Punchの周波数と減衰を設定します。DefaultはFrequencyが10、DampingRatioが1です。

- [RoundingMode](../api/roundingmode/index.md) — 整数Tweenで端数を処理する方向を選びます。既定のToEvenは中間値を偶数側に丸めます。

- [ScrambleMode](../api/scramblemode/index.md) — まだ確定していない文字を埋めるための文字集合を選びます。Customでは独自の文字列を指定できます。

- [SerializableMotionSettings<TValue, TOptions>](../api/serializablemotionsettings-2/index.md) — Inspectorに表示できるTween設定です。組み込みスケジューラをUnityのシリアライズ形式に変換します。

- [ShakeMode](../api/shakemode/index.md) — Shakeに使用する揺れの生成方式をRandomまたはPerlinNoiseから選びます。

- [ShakeOptions](../api/shakeoptions/index.md) — Shakeの周波数・減衰・乱数シード・モードを設定します。DefaultのモードはPerlinNoiseです。

- [StringOptions](../api/stringoptions/index.md) — FixedStringを補間するときのスクランブル文字、乱数シード、リッチテキストの処理を指定します。

## シーケンス

- [LSequence](../api/lsequence/index.md) — LitMotionの呼び出し方でシーケンスを組みます。子Tweenを追加してRunを呼ぶと親ハンドルを取得できます。

- [MSequence](../api/msequence/index.md) — 独自APIのシーケンスを作ります。実行前にビルダーをDisposeすると、追加済みの子Tweenもキャンセルされます。

- [MotionSequenceBuilder](../api/motionsequencebuilder/index.md) — Append、Join、Insertで子Tweenを同じ時間軸に置きます。Run後のシークや停止は親のハンドルで行います。

## ハンドルと寿命

- [CancelBehavior](../api/cancelbehavior/index.md) — 待機に渡したCancellationTokenがキャンセルされたとき、Tweenを続行、キャンセル、完了のどれにするか指定します。

- [CompositeMotionHandle](../api/compositemotionhandle/index.md) — 複数のハンドルをまとめて保持し、登録したTweenのキャンセルや完了をまとめて要求します。

- [DisposeBehavior](../api/disposebehavior/index.md) — ToDisposableで取得したオブジェクトをDisposeしたときにTweenをキャンセルするか完了するかを選びます。

- [LinkBehavior](../api/linkbehavior/index.md) — バインド先のGameObjectが破棄または無効化されたときにTweenに対して行う操作を選びます。

- [MotionAwaiter](../api/motionawaiter/index.md) — await handleで使用するawaiterです。完了・キャンセルのどちらでも待機が終わります。

- [MotionHandle](../api/motionhandle/index.md) — 登録済みTweenの時刻、速度、寿命を操作します。シーケンスに追加した子をシークするときは親のハンドルを使います。

- [MotionHandleExtensions](../api/motionhandleextensions/index.md) — ハンドルをGameObjectの寿命、コルーチンや非同期処理に結び付けます。直接awaitする場合とToValueTaskではキャンセル時の結果が異なります。

## スケジューラ

- [IMotionScheduler](../api/imotionscheduler/index.md) — ビルダーを登録し、対応するMotionHandleを返す契約です。MotionWorldも実装しています。

- [ManualMotionDispatcher](../api/manualmotiondispatcher/index.md) — 値型・オプション・アダプターの組み合わせごとにworldを持ちます。Updateで各worldを手動時計の時刻まで進めます。

- [MotionDispatcher](../api/motiondispatcher/index.md) — 自動更新のストレージ予約・クリアと、処理されなかった例外の通知先を管理します。

- [MotionLoopRunners](../api/motionlooprunners/index.md) — PlayerLoopに挿入されたMeatMotionのフェーズを識別するマーカー型をまとめています。

- [MotionLoopRunners.EarlyUpdate](../api/motionlooprunners-earlyupdate/index.md) — UnityのEarlyUpdateフェーズにMeatMotionが挿入した更新処理を識別するマーカー型です。

- [MotionLoopRunners.FixedUpdate](../api/motionlooprunners-fixedupdate/index.md) — UnityのFixedUpdateフェーズにMeatMotionが挿入した更新処理を識別するマーカー型です。

- [MotionLoopRunners.Initialization](../api/motionlooprunners-initialization/index.md) — UnityのInitializationフェーズにMeatMotionが挿入した更新処理を識別するマーカー型です。

- [MotionLoopRunners.PostLateUpdate](../api/motionlooprunners-postlateupdate/index.md) — UnityのPostLateUpdateフェーズにMeatMotionが挿入した更新処理を識別するマーカー型です。

- [MotionLoopRunners.PreLateUpdate](../api/motionlooprunners-prelateupdate/index.md) — UnityのPreLateUpdateフェーズにMeatMotionが挿入した更新処理を識別するマーカー型です。

- [MotionLoopRunners.PreUpdate](../api/motionlooprunners-preupdate/index.md) — UnityのPreUpdateフェーズにMeatMotionが挿入した更新処理を識別するマーカー型です。

- [MotionLoopRunners.TimeUpdate](../api/motionlooprunners-timeupdate/index.md) — UnityのTimeUpdateフェーズにMeatMotionが挿入した更新処理を識別するマーカー型です。

- [MotionLoopRunners.Update](../api/motionlooprunners-update/index.md) — UnityのUpdateフェーズにMeatMotionが挿入した更新処理を識別するマーカー型です。

- [MotionScheduler](../api/motionscheduler/index.md) — UnityのPlayerLoopフェーズと時計を選びます。ポーズ中も進める場合はIgnoreTimeScaleの付いたスケジューラを指定できます。

- [MotionTimeKind](../api/motiontimekind/index.md) — Jobで使用する経過時間をスケール時間・非スケール時間・実時間から選びます。

- [MotionUpdateDriver](../api/motionupdatedriver/index.md) — 自動更新をUnityのPlayerLoopに取り付ける実行時コンポーネントです。通常のTweenはWithSchedulerで更新フェーズを選べます。

- [MotionWorld](../api/motionworld/index.md) — 独立したTweenの集合と更新時計を持ちます。WithSchedulerでビルダーを登録し、メインスレッドでTickに経過秒数を渡します。

## Unityへのバインド

- [AudioMotionExtensions](../api/extensions-audiomotionextensions/index.md) — AudioSourceの音量・ピッチ、AudioMixerの公開パラメーターにfloatをバインドします。

- [CameraMotionExtensions](../api/extensions-cameramotionextensions/index.md) — カメラの画角・クリップ面・背景色・ビューポートなどをTweenで変更します。

- [LoggerMotionExtensions](../api/extensions-loggermotionextensions/index.md) — 値の変化をUnityのILoggerに渡します。書式を指定するオーバーロードもあります。

- [MaterialMotionExtensions](../api/extensions-materialmotionextensions/index.md) — Materialのfloat・int・Colorプロパティを、プロパティ名またはIDで更新します。

- [ProgressMotionExtensions](../api/extensions-progressmotionextensions/index.md) — Tweenの出力をIProgressに渡し、更新ごとに進捗を通知します。

- [RectTransformMotionExtensions](../api/extensions-recttransformmotionextensions/index.md) — RectTransformのアンカー、ピボット、サイズ、アンカー基準の座標にバインドします。

- [Rigidbody2DMotionExtensions](../api/extensions-rigidbody2dmotionextensions/index.md) — Rigidbody2Dの位置・回転を更新します。軸を指定して2Dの位置を更新することもできます。

- [RigidbodyMotionExtensions](../api/extensions-rigidbodymotionextensions/index.md) — Rigidbodyの位置・回転を更新します。物理移動を使うかプロパティに直接代入するかを引数で指定できます。

- [SpriteRendererMotionExtensions](../api/extensions-spriterenderermotionextensions/index.md) — SpriteRendererの色全体、またはRGBAのうち1チャンネルを更新します。

- [TMPCharacterMotionUpdateAction<T>](../api/extensions-tmpcharactermotionupdateaction-1/index.md) — 文字番号と、参照渡しのTMPMotionCharacterを受け取るコールバックです。文字ごとの変形や色を更新できます。

- [TMPMotionCharacter](../api/extensions-tmpmotioncharacter/index.md) — TextMeshProの1文字に適用する位置・回転・スケール・色を保持します。

- [TextMeshProMotionExtensions](../api/extensions-textmeshpromotionextensions/index.md) — TMP_Textの表示文字数、文字間隔、テキストなどを更新します。文字番号を渡す拡張では1文字ずつ移動・回転・着色できます。

- [TransformMotionExtensions](../api/extensions-transformmotionextensions/index.md) — Transformのワールド・ローカル座標、回転、スケールにバインドします。軸を指定した呼び出しは他の軸の現在値を保ちます。

- [UGUIMotionExtensions](../api/extensions-uguimotionextensions/index.md) — uGUIのGraphic、Text、Image、CanvasGroupを更新します。色のチャンネル、表示する文字列、塗りつぶし量などを選べます。

- [UIToolkitMotionExtensions](../api/extensions-uitoolkitmotionextensions/index.md) — VisualElementの位置・サイズ・色・変形、テキストや進捗バーへTweenの値を書き込みます。

- [VisualEffectMotionExtensions](../api/extensions-visualeffectmotionextensions/index.md) — Visual Effect Graphの公開プロパティに数値やベクトルをバインドします。プロパティ名とIDの両方を指定できます。

- [VolumeMotionExtensions](../api/extensions-volumemotionextensions/index.md) — レンダーパイプラインのVolumeのweightにfloat値を書き込みます。

- [LocalPositionTweens](../api/localpositiontweens/index.md) — 多数のTransformの座標をまとめて更新する専用バッチです。Addはローカル座標、AddWorldPositionはワールド座標を使います。

## 外部ライブラリ

- [R3MotionExtensions](../api/r3motionextensions/index.md) — ビルダーからR3のObservableを作成し、値をReactivePropertyにバインドしたり寿命をDisposableに結び付けたりできます。

- [UniRxMotionExtensions](../api/unirxmotionextensions/index.md) — ビルダーからUniRxのObservableを作成し、Tweenの値をReactivePropertyにバインドします。

- [UniTaskMotionExtensions](../api/unitaskmotionextensions/index.md) — UniTaskでの待機とAsyncReactivePropertyへの書き込みを追加します。トークンのキャンセル時に行う操作を選べます。

## アダプター・コレクション・Job

- [ColorMotionAdapter](../api/adapters-colormotionadapter/index.md) — 始点と終点のColor値をイーズ適用後のProgressで線形補間します。

- [DoubleMotionAdapter](../api/adapters-doublemotionadapter/index.md) — 始点と終点のDouble値をイーズ適用後のProgressで線形補間します。

- [FixedString128BytesMotionAdapter](../api/adapters-fixedstring128bytesmotionadapter/index.md) — FixedString128Bytesの始点と終点から、現在の進捗に合わせた文字列を計算します。StringOptionsでスクランブルとリッチテキストを設定できます。

- [FixedString32BytesMotionAdapter](../api/adapters-fixedstring32bytesmotionadapter/index.md) — FixedString32Bytesの始点と終点から、現在の進捗に合わせた文字列を計算します。StringOptionsでスクランブルとリッチテキストを設定できます。

- [FixedString4096BytesMotionAdapter](../api/adapters-fixedstring4096bytesmotionadapter/index.md) — FixedString4096Bytesの始点と終点から、現在の進捗に合わせた文字列を計算します。StringOptionsでスクランブルとリッチテキストを設定できます。

- [FixedString512BytesMotionAdapter](../api/adapters-fixedstring512bytesmotionadapter/index.md) — FixedString512Bytesの始点と終点から、現在の進捗に合わせた文字列を計算します。StringOptionsでスクランブルとリッチテキストを設定できます。

- [FixedString64BytesMotionAdapter](../api/adapters-fixedstring64bytesmotionadapter/index.md) — FixedString64Bytesの始点と終点から、現在の進捗に合わせた文字列を計算します。StringOptionsでスクランブルとリッチテキストを設定できます。

- [FloatMotionAdapter](../api/adapters-floatmotionadapter/index.md) — 始点と終点のFloat値をイーズ適用後のProgressで線形補間します。

- [FloatPunchMotionAdapter](../api/adapters-floatpunchmotionadapter/index.md) — Punchの初期値と強さから、指定時刻のFloat値を計算します。

- [FloatShakeMotionAdapter](../api/adapters-floatshakemotionadapter/index.md) — Shakeの初期値と強さから、指定時刻のFloat値を計算します。

- [IntMotionAdapter](../api/adapters-intmotionadapter/index.md) — 補間した値をIntegerOptionsの丸め規則に従ってInt値に変換します。

- [LongMotionAdapter](../api/adapters-longmotionadapter/index.md) — 補間した値をIntegerOptionsの丸め規則に従ってLong値に変換します。

- [QuaternionMotionAdapter](../api/adapters-quaternionmotionadapter/index.md) — Quaternion.LerpUnclampedで開始回転と終了回転を補間します。

- [RectMotionAdapter](../api/adapters-rectmotionadapter/index.md) — Rectの位置とサイズをそれぞれ補間し、新しいRectを返します。

- [Vector2MotionAdapter](../api/adapters-vector2motionadapter/index.md) — 始点と終点のVector2値をイーズ適用後のProgressで線形補間します。

- [Vector2PunchMotionAdapter](../api/adapters-vector2punchmotionadapter/index.md) — Punchの初期値と強さから、指定時刻のVector2値を計算します。

- [Vector2ShakeMotionAdapter](../api/adapters-vector2shakemotionadapter/index.md) — Shakeの初期値と強さから、指定時刻のVector2値を計算します。

- [Vector3MotionAdapter](../api/adapters-vector3motionadapter/index.md) — 始点と終点のVector3値をイーズ適用後のProgressで線形補間します。

- [Vector3PunchMotionAdapter](../api/adapters-vector3punchmotionadapter/index.md) — Punchの初期値と強さから、指定時刻のVector3値を計算します。

- [Vector3ShakeMotionAdapter](../api/adapters-vector3shakemotionadapter/index.md) — Shakeの初期値と強さから、指定時刻のVector3値を計算します。

- [Vector4MotionAdapter](../api/adapters-vector4motionadapter/index.md) — 始点と終点のVector4値をイーズ適用後のProgressで線形補間します。

- [FastListCore<T>](../api/collections-fastlistcore-1/index.md) — 配列と使用中の件数を分けて管理するリストです。AsSpanは使用中の範囲、AsArrayは確保済み配列を返します。

- [ILinkedPoolNode<T>](../api/collections-ilinkedpoolnode-1/index.md) — LinkedPoolが次のノードを書き換えられるように、参照渡しのNextNodeを公開する契約です。

- [LinkedPool<T>](../api/collections-linkedpool-1/index.md) — ノード自身に次の要素へのリンクを持たせるプールです。競合中はTryPush・TryPopがfalseを返します。

- [NativeAnimationCurve](../api/collections-nativeanimationcurve/index.md) — UnityのAnimationCurveからキーとWrapModeをコピーし、ネイティブ領域で評価します。利用後はDisposeします。

- [UnsafeAnimationCurve](../api/collections-unsafeanimationcurve/index.md) — UnsafeListを使ってカーブを保持・評価します。割り当てに使うAllocatorを指定し、利用後にDisposeします。

- [ManagedMotionData](../api/managedmotiondata/index.md) — 状態付きsetterとループ・完了・キャンセル通知を保持します。UpdateUnsafeを呼ぶ側はデリゲートと状態の型を一致させる必要があります。

- [MotionUpdateJob<TValue, TOptions, TAdapter>](../api/motionupdatejob-3/index.md) — NativeArray内のTweenを並列評価し、値と回収対象のインデックスを別々に出力します。完了リストの容量は呼び出し側で確保します。

- [MotionUpdateJob<TValue, TOptions, TAdapter>.Motion](../api/motionupdatejob-3-motion/index.md) — Jobが読み書きする1件分の始点・終点、タイムライン、時計、実行状態を保持します。

- [MotionUpdateJob<TValue, TOptions, TAdapter>.Status](../api/motionupdatejob-3-status/index.md) — Job内の各Tweenの実行状態です。回収された要素はDisposedになり、以降の評価をスキップします。

## Editorと診断

- [EditorMotionScheduler](../api/editor-editormotionscheduler/index.md) — Unity Editorの更新イベントでTweenを進めるスケジューラです。Editorアセンブリから参照します。

- [MotionDebuggerWindow](../api/editor-motiondebuggerwindow/index.md) — 追跡中のTweenを表示するEditorウィンドウです。WindowメニューまたはOpenWindowで開けます。

- [SerializableMotionSettingsDrawer](../api/editor-serializablemotionsettingsdrawer/index.md) — InspectorでSerializableMotionSettingsの値とスケジューラを編集するPropertyDrawerです。

- [StringOptionsDrawer](../api/editor-stringoptionsdrawer/index.md) — 文字列補間オプションをInspectorに表示するPropertyDrawerです。

- [MotionDebugger](../api/motiondebugger/index.md) — 実行中のTweenの追跡と作成時スタックの記録を切り替えます。Itemsから追跡データを参照できます。

- [MotionDebugger.TrackingState](../api/motiondebugger-trackingstate/index.md) — 追跡対象のハンドル、アダプター型、スケジューラ、作成スタック、通知の状態を保持します。
