ProgressMotionExtensions
Tweenの出力をIProgressに渡し、更新ごとに進捗を通知します。
public static class ProgressMotionExtensionsReportingMotionExtensions.cs · L18メンバー
BindToProgress
IProgress<TValue>.Reportに各補間値を渡します。
public static MotionHandle BindToProgress(this FloatMotionBuilder builder, IProgress<float> progress)引数と戻り値
builderthis FloatMotionBuilder設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。progressIProgress<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>引数と戻り値
builderthis MotionBuilder<TValue, TOptions, TAdapter>設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。progressIProgress<TValue>値を適用する対象(IProgress<TValue>)。- 戻り値
MotionHandle
MeatMotion