MeatMotion

ProgressMotionExtensions

Report each bound tween value through IProgress.

Namespace
MeatMotion.Extensions
Assembly
MeatMotion

Jump to members

public static class ProgressMotionExtensions
ReportingMotionExtensions.cs · L18

Members

BindToProgress

Call IProgress<TValue>.Report with each sampled value.

public static MotionHandle BindToProgress(this FloatMotionBuilder builder, IProgress<float> progress)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
progress
IProgress<float> Target IProgress<float> that receives the update.
Returns
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>
Parameters and return value
builder
this MotionBuilder<TValue, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
progress
IProgress<TValue> Target IProgress<TValue> that receives the update.
Returns
MotionHandle