A Unity extension that adds 2D navigation mesh generation and pathfinding for tilemap, sprite and Collider2D top-down games.
KyryloKuzyk/PrimeTween
Allocation-free tween library for Unity that animates properties, delays and sequences with one line of code.
Open-source alternative to:DOTween
- Stars
- 2,006
- Forks
- 83
- Open issues
- 5
- Last commit
- 5 days ago
What is it?
PrimeTween is an animation (tweening) library for Unity that interpolates values such as transform position, rotation, scale, UI, materials, camera properties and AudioSource settings over time. A single call like Tween.PositionY(transform, endValue: 10, duration: 1) starts an animation, and IDE autocomplete lists the supported targets. It also provides camera and transform shakes, punch effects, delays, and custom tweens for animating any float, Color, Vector, Quaternion or Rect value.
Animations can be combined into sequences that run in parallel, in order, or overlapping at specific times. They can also be awaited with coroutines or async/await, and cycles support restart, yoyo, incremental and rewind modes. Tweens can be stopped, completed, paused or given a custom time scale while running, and a Debugging window in the Unity Inspector lists active tweens.
The library states that it never allocates memory at runtime, and it offers a DOTween migration adapter and a cheatsheet mapping DOTween calls to PrimeTween equivalents. Core functionality is free; the PRO version adds Inspector-authored tween animations and per-object material animation.
Key features
- 01Animates transform, UI, material, camera and AudioSource properties with one-line calls.
- 02Combines animations into sequences that run in parallel, in order, or overlapping.
- 03Supports coroutines and async/await, including on WebGL.
- 04Provides camera shake, transform shake and punch effects.
- 05Offers custom tweens that animate any supported value type with a callback.
- 06Includes a DOTween migration adapter and API cheatsheet.
Use cases
- Adding juicy UI transitions, such as opening and closing windows, in a Unity game.
- Creating screen shake and hit feedback for game-feel effects.
- Scripting timed cutscene-like sequences with delays and callbacks.
- Migrating an existing DOTween project to a lighter-weight tween API.
Quick start
- 1
Import PrimeTween from the Unity Asset Store
- 2
Optional: install via Unity Package Manager (UPM) as described in the README
- 3
Call a Tween method in code, e.g. animate Y position to 10 over 1 second
Tween.PositionY(transform, endValue: 10, duration: 1, ease: Ease.InOutSine);
Things to know
- The license is listed as NOASSERTION, so the terms are unclear and should be checked before use.
- Some advanced features such as no-code animation are part of the paid PrimeTween PRO version.
- Async/await and coroutines allocate garbage, so allocation-free use requires Sequence or callbacks.
Topics
FAQ
- What is PrimeTween?
- Allocation-free tween library for Unity that animates properties, delays and sequences with one line of code. PrimeTween is an animation (tweening) library for Unity that interpolates values such as transform position, rotation, scale, UI, materials, camera properties and AudioSource settings over time. A single call like Tween.PositionY(transform, endValue: 10, duration: 1) starts an animation, and IDE autocomplete lists the supported targets. It also provides camera and transform shakes, punch effects, delays, and custom tweens for animating any float, Color, Vector, Quaternion or Rect value.
- Is PrimeTween free to use? What license does it have?
- PrimeTween is open source under the Other license. Check the license terms before using it in commercial products.
- Is PrimeTween still maintained?
- Actively maintained. The last commit to PrimeTween was on Oct 15, 2026.
- What can I use PrimeTween for?
- Adding juicy UI transitions, such as opening and closing windows, in a Unity game. Creating screen shake and hit feedback for game-feel effects. Scripting timed cutscene-like sequences with delays and callbacks. Migrating an existing DOTween project to a lighter-weight tween API.
- How do I install PrimeTween?
- Import PrimeTween from the Unity Asset Store Optional: install via Unity Package Manager (UPM) as described in the README Call a Tween method in code, e.g. animate Y position to 10 over 1 second: Tween.PositionY(transform, endValue: 10, duration: 1, ease: Ease.InOutSine);
- Where can I get PrimeTween?
- The source code and installation instructions are on GitHub: https://github.com/KyryloKuzyk/PrimeTween
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Official Unity integration for Yarn Spinner, a screenplay-style dialogue system for running branching conversations in games.
Allocation-free async/await integration for Unity that makes Unity AsyncOperations, coroutines and events awaitable, running on PlayerLoop without threads.
Unity Editor and runtime plugin and MCP server that lets AI agents like Claude, Cursor and Copilot operate Unity projects and run LLMs inside games.
A uGUI-based in-game console for Unity that shows runtime logs and lets you run registered debug commands in builds.
A Model Context Protocol (MCP) plugin that lets AI coding assistants like Cursor, Claude Code and Codex control and query the Unity Editor.