MeatMotion

LoggerMotionExtensions

Send tween values to Unity's ILogger, optionally with a format string.

Namespace
MeatMotion.Extensions
Assembly
MeatMotion

Jump to members

public static class LoggerMotionExtensions
ReportingMotionExtensions.cs · L30

Members

BindToUnityLogger

Log each sample using the supplied logger, or Debug.unityLogger if none is supplied.

public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
Returns
MotionHandle
public static MotionHandle BindToUnityLogger<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder)
    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.
Returns
MotionHandle
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, string format)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
format
string Format string for converting the sampled value to text.
Returns
MotionHandle
public static MotionHandle BindToUnityLogger<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder, string format)
    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.
format
string Format string for converting the sampled value to text.
Returns
MotionHandle
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, ILogger logger)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
logger
ILogger Target ILogger that receives the update.
Returns
MotionHandle
public static MotionHandle BindToUnityLogger<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder, ILogger logger)
    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.
logger
ILogger Target ILogger that receives the update.
Returns
MotionHandle
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, ILogger logger, string format)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
logger
ILogger Target ILogger that receives the update.
format
string Format string for converting the sampled value to text.
Returns
MotionHandle
public static MotionHandle BindToUnityLogger<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder, ILogger logger, string format)
    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.
logger
ILogger Target ILogger that receives the update.
format
string Format string for converting the sampled value to text.
Returns
MotionHandle