# LoggerMotionExtensions

値の変化をUnityのILoggerに渡します。書式を指定するオーバーロードもあります。

Namespace: MeatMotion.Extensions

Assembly: MeatMotion

```csharp
public static class LoggerMotionExtensions
```

[Runtime/Bindings/ReportingMotionExtensions.cs · L30](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L30)

## BindToUnityLogger

各補間値をUnityロガーへ出力します。loggerを指定しない形式はDebug.unityLoggerを使います。

```csharp
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder)
```

引数と戻り値

- `builder` (`this FloatMotionBuilder`) 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
- 戻り値: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L32](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L32)

```csharp
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>
```

引数と戻り値

- `builder` (`this MotionBuilder<TValue, TOptions, TAdapter>`) 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
- 戻り値: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L35](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L35)

```csharp
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, string format)
```

引数と戻り値

- `builder` (`this FloatMotionBuilder`) 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
- `format` (`string`) 補間した値を文字列に変換する書式。
- 戻り値: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L41](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L41)

```csharp
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>
```

引数と戻り値

- `builder` (`this MotionBuilder<TValue, TOptions, TAdapter>`) 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
- `format` (`string`) 補間した値を文字列に変換する書式。
- 戻り値: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L44](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L44)

```csharp
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, ILogger logger)
```

引数と戻り値

- `builder` (`this FloatMotionBuilder`) 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
- `logger` (`ILogger`) 値を適用する対象（ILogger）。
- 戻り値: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L50](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L50)

```csharp
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>
```

引数と戻り値

- `builder` (`this MotionBuilder<TValue, TOptions, TAdapter>`) 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
- `logger` (`ILogger`) 値を適用する対象（ILogger）。
- 戻り値: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L53](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L53)

```csharp
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, ILogger logger, string format)
```

引数と戻り値

- `builder` (`this FloatMotionBuilder`) 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
- `logger` (`ILogger`) 値を適用する対象（ILogger）。
- `format` (`string`) 補間した値を文字列に変換する書式。
- 戻り値: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L59](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L59)

```csharp
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>
```

引数と戻り値

- `builder` (`this MotionBuilder<TValue, TOptions, TAdapter>`) 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
- `logger` (`ILogger`) 値を適用する対象（ILogger）。
- `format` (`string`) 補間した値を文字列に変換する書式。
- 戻り値: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L62](../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L62)
