# MMotion.String

Unity.CollectionsのFixedStringの容量ごとに文字列Tweenを作成します。リッチテキストやスクランブル文字はビルダーで設定します。

Namespace: MeatMotion

Assembly: MeatMotion

```csharp
public static class String
```

[Runtime/Adapters/Strings/StringMotion.cs · L26](../../source/Runtime/Adapters/Strings/StringMotion.cs.html#L26)

## FixedStringで文字列を補間する

`using MeatMotion;` と `using Unity.Collections;` を追加します。Completeで最終文字列を直ちに書き込みます。

```csharp
var result = new FixedString32Bytes();
var handle = MMotion.String.Create32Bytes(
    new FixedString32Bytes("A"), new FixedString32Bytes("DONE"), 1f)
    .Bind(v => result = v);
handle.Complete();
```

## Create32Bytes

FixedString32Bytesの始点と終点と秒数を指定して文字列Tweenを作成します。

```csharp
public static MotionBuilder<FixedString32Bytes, StringOptions, FixedString32BytesMotionAdapter> Create32Bytes( in FixedString32Bytes from, in FixedString32Bytes to, float duration)
```

引数と戻り値

- `from` (`in FixedString32Bytes`) 補間の開始値。
- `to` (`in FixedString32Bytes`) 補間の終了値。
- `duration` (`float`) 開始から終了までの秒数。
- 戻り値: `MotionBuilder<FixedString32Bytes, StringOptions, FixedString32BytesMotionAdapter>`

[Runtime/Adapters/Strings/StringMotion.cs · L28](../../source/Runtime/Adapters/Strings/StringMotion.cs.html#L28)

## Create64Bytes

FixedString64Bytesの始点と終点と秒数を指定して文字列Tweenを作成します。

```csharp
public static MotionBuilder<FixedString64Bytes, StringOptions, FixedString64BytesMotionAdapter> Create64Bytes( in FixedString64Bytes from, in FixedString64Bytes to, float duration)
```

引数と戻り値

- `from` (`in FixedString64Bytes`) 補間の開始値。
- `to` (`in FixedString64Bytes`) 補間の終了値。
- `duration` (`float`) 開始から終了までの秒数。
- 戻り値: `MotionBuilder<FixedString64Bytes, StringOptions, FixedString64BytesMotionAdapter>`

[Runtime/Adapters/Strings/StringMotion.cs · L32](../../source/Runtime/Adapters/Strings/StringMotion.cs.html#L32)

## Create128Bytes

FixedString128Bytesの始点と終点と秒数を指定して文字列Tweenを作成します。

```csharp
public static MotionBuilder<FixedString128Bytes, StringOptions, FixedString128BytesMotionAdapter> Create128Bytes( in FixedString128Bytes from, in FixedString128Bytes to, float duration)
```

引数と戻り値

- `from` (`in FixedString128Bytes`) 補間の開始値。
- `to` (`in FixedString128Bytes`) 補間の終了値。
- `duration` (`float`) 開始から終了までの秒数。
- 戻り値: `MotionBuilder<FixedString128Bytes, StringOptions, FixedString128BytesMotionAdapter>`

[Runtime/Adapters/Strings/StringMotion.cs · L36](../../source/Runtime/Adapters/Strings/StringMotion.cs.html#L36)

## Create512Bytes

FixedString512Bytesの始点と終点と秒数を指定して文字列Tweenを作成します。

```csharp
public static MotionBuilder<FixedString512Bytes, StringOptions, FixedString512BytesMotionAdapter> Create512Bytes( in FixedString512Bytes from, in FixedString512Bytes to, float duration)
```

引数と戻り値

- `from` (`in FixedString512Bytes`) 補間の開始値。
- `to` (`in FixedString512Bytes`) 補間の終了値。
- `duration` (`float`) 開始から終了までの秒数。
- 戻り値: `MotionBuilder<FixedString512Bytes, StringOptions, FixedString512BytesMotionAdapter>`

[Runtime/Adapters/Strings/StringMotion.cs · L40](../../source/Runtime/Adapters/Strings/StringMotion.cs.html#L40)

## Create4096Bytes

FixedString4096Bytesの始点と終点と秒数を指定して文字列Tweenを作成します。

```csharp
public static MotionBuilder<FixedString4096Bytes, StringOptions, FixedString4096BytesMotionAdapter> Create4096Bytes( in FixedString4096Bytes from, in FixedString4096Bytes to, float duration)
```

引数と戻り値

- `from` (`in FixedString4096Bytes`) 補間の開始値。
- `to` (`in FixedString4096Bytes`) 補間の終了値。
- `duration` (`float`) 開始から終了までの秒数。
- 戻り値: `MotionBuilder<FixedString4096Bytes, StringOptions, FixedString4096BytesMotionAdapter>`

[Runtime/Adapters/Strings/StringMotion.cs · L44](../../source/Runtime/Adapters/Strings/StringMotion.cs.html#L44)
