What is MyMotion?
MyMotion
MyMotion is a high-performance tween library for Unity. Its API mirrors LitMotion, so existing LitMotion code moves over by renaming a few identifiers. Underneath, the runtime has been rebuilt around a Burst-compiled data-oriented core that is faster than LitMotion in all 17 tests we ran and ranks first of six libraries in LitMotion's own benchmark.
using MyMotion; using MyMotion.Extensions; MMotion.Create(Vector3.zero, new Vector3(5f, 0f, 0f), 1f) .WithEase(Ease.OutQuad) .BindToPosition(transform) .AddTo(gameObject); At a glance
All numbers are measured on Release IL2CPP players; see Performance for the method.
- Faster than LitMotion in all 17 tests we ran. For example, updating 64,000 float tweens takes 0.58 ms per frame against LitMotion's 0.95 ms, and creating one…
MyMotion is a high-performance tween library for Unity built with a relentless focus on runtime speed.
While its API closely follows LitMotion, the internal runtime was built from the ground up.
As a result, MyMotion outperformed LitMotion across all 17 benchmarks I ran. Furthermore, when reproducing LitMotion's own official benchmark suite, MyMotion ranked 1st among six major libraries in all four timing tests.
It's released under the MIT license, so feel free to use it in both personal and commercial projects.
Benchmarks
Before diving into the details, let's look at the numbers.
Reproducing LitMotion's Official Benchmarks
I reproduced the exact same tween workloads and measurement methodology used in LitMotion's README.
The six libraries compared are: MyMotion, LitMotion, PrimeTween, DOTween, LeanTween, and FastTweener.
MyMotion took 1st place in all four timing tests.
In particular, when running 64,000 float tweens simultaneously, LitMotion takes 0.95 ms per frame, whereas MyMotion handles them in 0.58 ms.
And of course, GC allocations are 0 B.
Per-Tween Overhead
Next, let's isolate pure tween processing time—excluding Unity's own frame overhead—and compare MyMotion directly against LitMotion.
Blue is MyMotion; gray is LitMotion.
It's not just updates that are faster—creation is significantly faster too. Compared to LitMotion, MyMotion reduces update times by 14–49% and creation times by 25–65%.
Idle Overhead (When No Tweens Are Running)
One thing I especially want to highlight is how lightweight MyMotion is when nothing is actively tweening.
I measured how much time the update loop takes after spawning a large number of tweens and letting them all finish:
| Peak Tween Count | MyMotion | LitMotion |
|---|---|---|
| 1,000 | 0.0001 ms | 0.0052 ms |
| 10,000 | 0.0001 ms | 0.0774 ms |
| 64,000 | 0.0002 ms | 0.2412 ms |
In LitMotion, the runtime still iterates over previously expanded storage, leaving residual overhead even after all tweens have completed.
MyMotion, on the other hand, only updates currently active tweens. Once everything finishes, the update cost drops back to effectively zero—it doesn't care if you were running 64,000 tweens a moment ago.
For games that have temporary spikes of tweens (like heavy VFX or UI bursts), this kind of subtle difference really adds up.
Usage
The API is nearly identical to LitMotion. If you've used LitMotion before, you'll feel right at home—just replace Lit with My and L with M.
Basic Tween
using MyMotion; using MyMotion.Extensions; MMotion.Create(Vector3.zero, Vector3.one, 1f) .WithEase(Ease.OutQuad) .BindToPosition(transform) .AddTo(gameObject); That's all it takes.
Easing, delays, and loops can all be chained fluently:
MMotion.Create(Vector3.zero, Vector3.one, 1f) .WithEase(Ease.InOutSine) .WithDelay(0.5f) .WithLoops(3, LoopType.Yoyo) .BindToPosition(transform) .AddTo(gameObject); Tweening Arbitrary Values
You aren't limited to Unity components like Transform—you can tween regular variables as well:
MMotion.Create(0f, 100f, 1f) .Bind(value => Debug.Log(value)); To avoid GC allocations from closures, use the state-passing overload:
MMotion.Create(0f, 100f, 1f) .Bind(this, static (value, self) => { self._value = value; }); MotionHandle
Creating a tween returns a MotionHandle:
MotionHandle handle = MMotion.Create(0f, 1f, 1f) .Bind(value => Debug.Log(value)); You can use this handle to cancel, force-complete, or adjust playback speed and time:
handle.PlaybackSpeed = 2f; handle.Time = 0.5; handle.Complete(); Unlike LitMotion's MotionHandle, MyMotion's MotionHandle is a pure unmanaged struct with no managed references.
As a nice bonus from this design, you can reuse the same builder multiple times:
var builder = MMotion.Create(0f, 1f, 1f) .WithEase(Ease.OutQuad); builder.BindToPositionX(transformA); builder.BindToPositionX(transformB); builder.BindToPositionX(transformC); In LitMotion, a builder can only be bound once, so this is a neat quality-of-life improvement.
Sequences
You can also combine multiple tweens into a sequence:
MSequence.Create() .Append( MMotion.Create(0f, 5f, 1f) .BindToPositionX(transform)) .AppendInterval(0.5f) .Append( MMotion.Create(0f, 5f, 1f) .BindToPositionY(transform)) .Run(); Both sequential and parallel playback are supported.
async / await
You can await the completion of a tween:
await MMotion.Create(0f, 1f, 1f) .BindToPositionX(transform); await MMotion.Create(0f, 1f, 1f) .BindToPositionY(transform); Both Unity's built-in Awaitable and Cysharp's UniTask are supported out of the box.
Other Features
MyMotion covers the full feature set you'd expect from LitMotion, including Punch, Shake, string tweening, custom easing, custom value types, and manual updates.
It also integrates with TextMeshPro, uGUI, UI Toolkit, Visual Effect Graph, R3, and UniRx—and includes an Inspector component for authoring animations as well as a Motion Debugger to inspect active tweens.
Why Is MyMotion Faster?
LitMotion already uses the Burst Compiler, C# Job System, unmanaged memory, and Sparse Sets—so simply adopting a data-oriented design isn't enough to beat it.
MyMotion achieves its speed through a combination of techniques, including:
- Pipelining evaluation and binding
- Redesigning the memory layout
- Dynamically switching execution strategies based on the number of active tweens
- Specializing binding paths
- Optimizing specifically with IL2CPP's generated code in mind
I plan to write dedicated deep-dive articles covering these architectural details and optimizations in the future.
Migrating from LitMotion
No matter how fast a library is, nobody will use it if migration is a pain—which is why I kept the API compatible with LitMotion. You can migrate simply by replacing the following names:
| LitMotion | MyMotion | |
|---|---|---|
LitMotion | → | MyMotion |
LitMotion.Extensions | → | MyMotion.Extensions |
LMotion | → | MMotion |
LSequence | → | MSequence |
LitMotionAnimation | → | MyMotionAnimation |
I love that M comes right after L in the alphabet—pure coincidence, by the way.
Wrapping Up
MyMotion is still freshly released, and I'm committed to polishing its stability and real-world ergonomics going forward.
I'm also sure there are still optimization opportunities I haven't spotted yet.
If this caught your interest, please give it a try! Issues, PRs, and GitHub stars are always welcome.
MyMotion
MyMotion is a high-performance tween library for Unity. Its API mirrors LitMotion, so existing LitMotion code moves over by renaming a few identifiers. Underneath, the runtime has been rebuilt around a Burst-compiled data-oriented core that is faster than LitMotion in all 17 tests we ran and ranks first of six libraries in LitMotion's own benchmark.
using MyMotion; using MyMotion.Extensions; MMotion.Create(Vector3.zero, new Vector3(5f, 0f, 0f), 1f) .WithEase(Ease.OutQuad) .BindToPosition(transform) .AddTo(gameObject); At a glance
All numbers are measured on Release IL2CPP players; see Performance for the method.
- Faster than LitMotion in all 17 tests we ran. For example, updating 64,000 float tweens takes 0.58 ms per frame against LitMotion's 0.95 ms, and creating one…




