Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

LitMotion

> 编程语言
Open source

Lightning-fast and Zero Allocation Tween Library for Unity.

2.3K stars0 likes1 views
WebsiteGitHub

About

Lightning-fast and Zero Allocation Tween Library for Unity.

LitMotion

Lightning-fast and Zero Allocation Tween Library for Unity. 日本語版READMEはこちら

Overview

LitMotion is a high-performance tween library for Unity. LitMotion includes a rich set of features for animating components such as Transform, Material, TextMeshPro, and any field/property, making it easy to create animations.

LitMotion is my second tween library I created after Magic Tween. LitMotion was designed based on experience implementing Magic Tween to achieve rich functionality and extremely high performance. In all situations such as creating and updating tweens, it exhibits overwhelming performance that is 2 to 20 times faster than other tween libraries. Of course, there is no allocation at all when creating a tween.

Additionally, v2 introduces Sequence for combining multiple motions and the LitMotion.Animation package, which allows you to create tween animations directly from the Inspector. With these additions, LitMotion is now as powerful, if not more, than DOTween Pro or PrimeTween in terms of features.

Documentation

The full version of documentation can be found here.

Features

  • Animate anything in one line of code.
  • Achieves zero allocations with the struct-based design
  • Extremely high-performance implementation optimized using DOTS (Data-Oriented Technology Stack)
  • Works in both runtime and editor
  • Supports complex settings like easing and looping
  • Waits for completion using callbacks/coroutines
  • Zero allocation text animationSupports TextMesh Pro / UI Toolkit
  • Special motions like Punch, Shake, etc.
  • Conversion to Observable using UniRx / R3
  • async/await support using UniTask
  • Type extension with IMotionOptions and IMotionAdapter
  • Integration with the Inspector via SerializableMotionSettings<T, TOptions>
  • Debugging API and LitMotion Debugger window
  • Combine animations using LSequence
  • Create complex animations directly from the Inspector with the LitMotion.Animation package

Setup

Requirements

  • Unity 2021.3 or later
  • Burst 1.6.0 or later
  • Collection 1.5.1 or later
  • Mathematics 1.0.0 or later

Installation

  1. Open Package Manager from Window > Package Manager.
  2. Click the "+" button > Add package from git URL.
  3. Enter the following URL:
https://github.com/annulusgames/LitMotion.git?path=src/LitMotion/Assets/LitMotion

Alternatively, open Packages/manifest.json and add the following to the dependencies block:

json
{
    "dependencies": {
        "com.annulusgames.lit-motion": "https://github.com/annulusgames/LitMotion.git?path=src/LitMotion/Assets/LitMotion"
    }
}

Getting Started

Using LitMotion allows easy animation of values such as Transform and Material. To create motion, use LMotion.Create().

Here's a sample code. Refer to the documentation for more details.

…

Sequence

The Sequence feature is provided for combining multiple motions.

cs
LSequence.Create()
    .Append(LMotion.Create(0f, 1f, 1f).BindToPositionX(transform))
    .Join(LMotion.Create(0f, 1f, 1f).BindToPositionY(transform))
    .Insert(0f, LMotion.Create(0f, 1f, 1f).BindToPositionZ(transform))
    .Run();

For more details, refer to the Sequence section in the documentation.

LitMotion.Animation

LitMotion.Animation is an additional package that provides animation functionality built with LitMotion.

By introducing this package, you can use the LitMotion Animation component to construct animations in the Inspector.

Requirements

  • Unity 2021.3 or later
  • LitMotion 2.0.0 or later

Installation

You can install LitMotion using the Package Manager.

  1. Open Package Manager by navigating to Window > Package Manager.
  2. Click on the "+" button and select "Add package from git URL."
  3. Enter the following URL:
https://github.com/annulusgames/LitMotion.git?path=src/LitMotion/Assets/LitMotion.Animation

Alternatively, you can open the Packages/manifest.json file and add the following line within the dependencies block:

json
{
    "dependencies": {
        "com.annulusgames.lit-motion.animation": "https://github.com/annulusgames/LitMotion.git?path=src/LitMotion/Assets/LitMotion.Animation"
    }
}

How to Use

For how to use LitMotion.Animation, please refer to the documentation on LitMotion.Animation.

Performance

Here are the benchmark results. The benchmark source code can be found in this repository.

Tween 64,000 float properties

Startup

Update

Tween 50,000 transform.position

Startup

Update

GC Allocation (per position tween creation)

Support

Untiy forum: https://forum.unity.com/threads/litmotion-lightning-fast-and-zero-allocation-tween-library.1530427/

License

MIT License

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#animationdotseasingtween

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言