MMotion.String
Create text tweens for the five Unity.Collections FixedString capacities. Configure rich text and scrambling on the builder.
public static class StringStringMotion.cs · L26Tween 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
fromin FixedString32BytesStarting value.toin FixedString32BytesEnd value.durationfloatDuration 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
fromin FixedString64BytesStarting value.toin FixedString64BytesEnd value.durationfloatDuration 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
fromin FixedString128BytesStarting value.toin FixedString128BytesEnd value.durationfloatDuration 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
fromin FixedString512BytesStarting value.toin FixedString512BytesEnd value.durationfloatDuration 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
fromin FixedString4096BytesStarting value.toin FixedString4096BytesEnd value.durationfloatDuration in seconds.- Returns
MotionBuilder<FixedString4096Bytes, StringOptions, FixedString4096BytesMotionAdapter>
MeatMotion