Repolode
KyryloKuzyk

KyryloKuzyk/PrimeTween

Allocation-free tween library for Unity that animates properties, delays and sequences with one line of code.

Alternativa open source a:DOTween

Estrelas
2,006
Forks
83
Issues abertas
5
Último commit
há 4 dias

O que é?

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.

Recursos principais

  • 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.

Casos de uso

  • 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.

Tópicos

Perguntas frequentes

O que é 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.
PrimeTween é gratuito? Qual é a licença?
PrimeTween é open source sob a licença Other. Confira os termos da licença antes de usá-lo em produtos comerciais.
PrimeTween ainda é mantido?
Manutenção ativa. O último commit de PrimeTween foi em 15 de out. de 2026.
Para que posso usar PrimeTween?
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.
Onde consigo PrimeTween?
O código-fonte e as instruções de instalação estão no GitHub: https://github.com/KyryloKuzyk/PrimeTween

Resumo gerado por IA a partir do README do projeto. As estatísticas do GitHub são atualizadas diariamente.

Projetos relacionados