MeatMotion

Get started

MeatMotion is a tween library for Unity 6.3 and later. You can bind a float to a Transform axis, build a sequence, and scrub its timeline through a single handle.

Install and move a cube

Download the UPM package. In Unity's Package Manager, choose + → Install package from tarball and select the downloaded file. To install from Git instead, choose Install package from git URL and enter https://github.com/Garume/MeatMotion.git?path=src/MeatMotion/Assets/MeatMotion. If your script has an assembly definition, add a reference to MeatMotion.

Save this script as MoveCube.cs, attach it to a Cube, and enter Play Mode. Watch its local X position go from 0 to 5 in 0.4 seconds.

using MeatMotion;
using MeatMotion.Extensions;
using UnityEngine;

public sealed class MoveCube : MonoBehaviour
{
    void Start()
    {
        MMotion.Create(0f, 5f, 0.4f)
            .BindToLocalPositionX(transform)
            .AddTo(gameObject);
    }
}

Browse the API · Choose an update clock · Await a motion or cancel a wait

Moving from LitMotion

MeatMotion implements its own runtime. Change LMotion to MMotion. Switch the namespaces to MeatMotion and MeatMotion.Extensions and update your assembly references. Keep each sequence and its children in one library. Existing managed references in scenes and prefabs need checking. Automatic migration of serialized type names is unverified.

The comparison covers LitMotion 2.0.2. Most code moves over by changing namespaces; some types are renamed, and the float factory returns a different builder type. The 147 Play Mode tests and two Edit Mode tests ported from that release passed on Unity 6000.3.29f1. One known difference concerns update order. If a setter seeks another tween scheduled later in the same frame, MeatMotion adds that frame's elapsed time to the new position. Migration notes and test results

Frame times

With 64,000 distinct float properties animating, median frame time was 1.855 ms with MeatMotion and 2.175 ms with LitMotion 2.0.2. Creating and binding all 64,000 tweens took 6.000 and 12.905 ms respectively. The Windows x64 Mono Player ran on Unity 6000.6.5f1. Conditions and data