MeatMotion

MMotion.String

Create text tweens for the five Unity.Collections FixedString capacities. Configure rich text and scrambling on the builder.

Namespace
MeatMotion
Assembly
MeatMotion

Jump to members

public static class String
StringMotion.cs · L26

Tween a FixedString

Add using MeatMotion; and using Unity.Collections;. Complete writes the final text immediately.

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

Members

Create32Bytes

Create a text tween from FixedString32Bytes endpoints and a duration in seconds.

public static MotionBuilder<FixedString32Bytes, StringOptions, FixedString32BytesMotionAdapter> Create32Bytes( in FixedString32Bytes from, in FixedString32Bytes to, float duration)
Parameters and return value
from
in FixedString32Bytes Starting value.
to
in FixedString32Bytes End value.
duration
float Duration in seconds.
Returns
MotionBuilder<FixedString32Bytes, StringOptions, FixedString32BytesMotionAdapter>

Create64Bytes

Create a text tween from FixedString64Bytes endpoints and a duration in seconds.

public static MotionBuilder<FixedString64Bytes, StringOptions, FixedString64BytesMotionAdapter> Create64Bytes( in FixedString64Bytes from, in FixedString64Bytes to, float duration)
Parameters and return value
from
in FixedString64Bytes Starting value.
to
in FixedString64Bytes End value.
duration
float Duration in seconds.
Returns
MotionBuilder<FixedString64Bytes, StringOptions, FixedString64BytesMotionAdapter>

Create128Bytes

Create a text tween from FixedString128Bytes endpoints and a duration in seconds.

public static MotionBuilder<FixedString128Bytes, StringOptions, FixedString128BytesMotionAdapter> Create128Bytes( in FixedString128Bytes from, in FixedString128Bytes to, float duration)
Parameters and return value
from
in FixedString128Bytes Starting value.
to
in FixedString128Bytes End value.
duration
float Duration in seconds.
Returns
MotionBuilder<FixedString128Bytes, StringOptions, FixedString128BytesMotionAdapter>

Create512Bytes

Create a text tween from FixedString512Bytes endpoints and a duration in seconds.

public static MotionBuilder<FixedString512Bytes, StringOptions, FixedString512BytesMotionAdapter> Create512Bytes( in FixedString512Bytes from, in FixedString512Bytes to, float duration)
Parameters and return value
from
in FixedString512Bytes Starting value.
to
in FixedString512Bytes End value.
duration
float Duration in seconds.
Returns
MotionBuilder<FixedString512Bytes, StringOptions, FixedString512BytesMotionAdapter>

Create4096Bytes

Create a text tween from FixedString4096Bytes endpoints and a duration in seconds.

public static MotionBuilder<FixedString4096Bytes, StringOptions, FixedString4096BytesMotionAdapter> Create4096Bytes( in FixedString4096Bytes from, in FixedString4096Bytes to, float duration)
Parameters and return value
from
in FixedString4096Bytes Starting value.
to
in FixedString4096Bytes End value.
duration
float Duration in seconds.
Returns
MotionBuilder<FixedString4096Bytes, StringOptions, FixedString4096BytesMotionAdapter>