MeatMotion

Migrate from LitMotion 2.0.2

MeatMotion has its own scheduler, storage and handle types. Replace LitMotion’s LMotion with MMotion, including Punch, Shake and String. Update namespace and assembly references.

Check setters that seek other tweens

If a setter seeks another tween scheduled later in the same frame, MeatMotion adds that frame's elapsed time to the requested position when it updates the second tween. LitMotion evaluates the values before running its setters. Compare both versions at the same frame if a motion reads or writes another handle from a setter.

On Unity 6000.3.29f1 the following code produced observed == 1.0 with LitMotion 2.0.2 and observed == 1.25 with MeatMotion 0.1.0. The first setter seeks the second tween to 1 second. For LitMotion, import its namespace and replace MMotion in the example with LMotion.

var clock = new ManualMotionDispatcher();
MotionHandle later = default;
MMotion.Create(0f, 4f, 4f).WithScheduler(clock.Scheduler)
    .WithImmediateBind(false).Bind(_ => later.Time = 1.0);
later = MMotion.Create(0f, 4f, 4f).WithScheduler(clock.Scheduler)
    .WithImmediateBind(false).Bind(_ => { });
clock.Update(0.25);
double observed = later.Time;
clock.Reset();

Float endpoints (0f, 1f) return a value-type FloatMotionBuilder. Copies are independent and can be bound again. When configuring a chain conditionally, keep its return value, for example builder = builder.WithLoops(3).WithOnLoopComplete(callback);. A zero-duration float tween completes once the clock advances beyond its start. For a single-use generic builder, call .AsMotionBuilder(). Integer endpoints select integer interpolation.

Switch one screen at a time

-using LitMotion;
-using LitMotion.Extensions;
+using MeatMotion;
+using MeatMotion.Extensions;

Update the assembly definition to reference MeatMotion. Add MeatMotion.UI for uGUI or TMP bindings, MeatMotion.Editor for editor code, or the corresponding MeatMotion.Integrations.* assembly for UniTask, UniRx or R3. Select new GUID references in the Unity Inspector if applicable.

Both libraries can be installed. Keep a sequence, its children and their handles together, including the dispatcher if you update them manually. Compiled DLLs exposing LitMotion types still need LitMotion. For scenes and prefabs, record your settings before migration and reopen the assets afterward. Automatic migration of type names stored by [SerializeReference] is unverified.

An extension call such as builder.BindToPosition(transform) keeps its spelling. For explicit static calls or using static, replace LitMotionTransformExtensions with TransformMotionExtensions. PlayerLoop code that identifies a phase by type should use MotionLoopRunners.Update for LitMotionLoopRunners.LitMotionUpdate.

What was checked?

The reference is LitMotion commit 025805c. Most code moves over by changing namespaces; some types are renamed, and the float factory returns a different builder type. All 147 ported Play Mode tests and two Edit Mode tests passed on Unity 6000.3.29f1.