MeatMotion

ProgressMotionExtensions

Tweenの出力をIProgressに渡し、更新ごとに進捗を通知します。

Namespace
MeatMotion.Extensions
Assembly
MeatMotion

メンバー一覧へ

public static class ProgressMotionExtensions
ReportingMotionExtensions.cs · L18

メンバー

BindToProgress

IProgress<TValue>.Reportに各補間値を渡します。

public static MotionHandle BindToProgress(this FloatMotionBuilder builder, IProgress<float> progress)
引数と戻り値
builder
this FloatMotionBuilder 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
progress
IProgress<float> 値を適用する対象(IProgress<float>)。
戻り値
MotionHandle
public static MotionHandle BindToProgress<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder, IProgress<TValue> progress)
    where TValue : unmanaged
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
引数と戻り値
builder
this MotionBuilder<TValue, TOptions, TAdapter> 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
progress
IProgress<TValue> 値を適用する対象(IProgress<TValue>)。
戻り値
MotionHandle