LoggerMotionExtensions
Send tween values to Unity's ILogger, optionally with a format string.
public static class LoggerMotionExtensionsReportingMotionExtensions.cs · L30Members
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
builderthis FloatMotionBuilderConfigured 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
builderthis 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
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.formatstringFormat 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
builderthis MotionBuilder<TValue, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.formatstringFormat string for converting the sampled value to text.- Returns
MotionHandle
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, ILogger logger)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.loggerILoggerTarget 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
builderthis MotionBuilder<TValue, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.loggerILoggerTarget ILogger that receives the update.- Returns
MotionHandle
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, ILogger logger, string format)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.loggerILoggerTarget ILogger that receives the update.formatstringFormat 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
builderthis MotionBuilder<TValue, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.loggerILoggerTarget ILogger that receives the update.formatstringFormat string for converting the sampled value to text.- Returns
MotionHandle
MeatMotion