# 4. DOTween and PrimeTween Compared
Part of [[Tweening and UI Juice]]. Back: [[3. UI Toolkit USS Transitions]]. Next: [[5. Menu and HUD Juice Pitfalls]].
> [!warning] Code not compiled in Unity
> Snippets are copied from official DOTween Get Started and the official PrimeTween README (fetched 2026-11-30). Neither package was imported or compiled in this project. Do not paste these until you have installed the cited version.
This series' compiled path is parts 2–3. Use a third-party tween library only if you want their shortcuts, sequencing, and editor tools across the whole project. Pick **one**. Do not ship both.
## 4.1 Official versions (fetched 2026-11-30)
| | DOTween (HOTween v2) | PrimeTween |
|---|---|---|
| Official latest | **1.3.045** (12 Oct 2026) | **1.5.3** (17 Nov 2026) |
| Sources | [Demigiant downloads](https://dotween.demigiant.com/download.php), [Asset Store](https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676) (lists 1.3.045, Oct 12, 2026) | [Asset Store](https://assetstore.unity.com/packages/tools/animation/primetween-high-performance-animations-and-sequences-252960) (lists 1.5.3, Nov 17, 2026), npm `com.kyrylokuzyk.primetween` 1.5.3, [GitHub README](https://github.com/KyryloKuzyk/PrimeTween) |
| Unity floor (official) | **2022.3** minimum (1.3.045 changelog). Compatible with Unity 6 on the Asset Store compatibility table (including a 6000.6 listing). | Asset Store: Unity 2018.4.36 or newer; "extensively tested with … and Unity 6." UPM install via npm scoped registry `com.kyrylokuzyk`. |
| Namespace | `DG.Tweening` | `PrimeTween` |
| Unscaled time (official) | `SetUpdate(true)` (Get Started / docs; PrimeTween's own migration table treats this as the independent-update flag) | README migration table: `Tween.Position(..., useUnscaledTime: true)` and `Sequence.Create(..., useUnscaledTime: true)` |
| UI Toolkit (official) | Changelog **1.2.825** (13 Feb 2026): "`UI Toolkit VisualElement` shortcuts for `DOPunch` and `DOShake`" | README: "Out of the box, PrimeTween can animate … UI, UI Toolkit …" (no additional version pin). PrimeTween **TextAnimator** for UI Toolkit is documented as Unity **6000.6+** / `PanelRenderer` — not a requirement for this 6000.5 series. |
| Changelog caveat | Full notes for 1.3.045 are on the official download page (independent time uses Unity `unscaledTime`; 6000.6 meta workaround on the Asset Store build). | GitHub changelog is written through **1.5.2** (28 Oct 2026). This note does not invent 1.5.3 API changes. |
Authoritative pages win if a later patch moves. Re-check those URLs before you lock a manifest.
## 4.2 Official DOTween snippet (Get Started)
After importing, official setup is **Tools > Demigiant > DOTween Utility Panel > Setup DOTween...**. Then:
```csharp
using DG.Tweening;
transform.DOMove(new Vector3(2, 2, 2), 2)
.SetEase(Ease.OutQuint)
.SetLoops(4)
.OnComplete(myFunction);
```
Also official: `DOTween.Init(...)` is optional (auto-init on first tween); `SetAutoKill(false)` if you will reuse a tween; `DOTween.SetTweensCapacity(3000, 200)` if you need more than the default cache (official Get Started: default max 200 Tweeners and 50 Sequences before auto-resize). For a pause menu, use the official independent-update flag (`SetUpdate(true)` in the documented migration sense), not `Time.timeScale`.
## 4.3 Official PrimeTween snippet (README)
Preferred official install is the Asset Store package (includes a demo). UPM: npm registry, package `com.kyrylokuzyk.primetween` **1.5.3**.
```csharp
using PrimeTween;
Tween.PositionY(transform, endValue: 10, duration: 1, ease: Ease.InOutSine);
Tween.Rotation(transform, endValue: Quaternion.Euler(0, 90, 0), duration: 1);
```
The README's migration table maps `transform.DOMoveX(to, 1)` to `Tween.PositionX(transform, from, to, 1)` and `SetUpdate(true)` to `useUnscaledTime: true`. Use `Tween.Custom` when a built-in shortcut is not listed (official "animate anything" path).
## 4.4 How to choose
| If you… | Prefer |
|---|---|
| Want no third-party package, menus + a few punches | Parts 2–3 only |
| Already have DOTween in the project, or want years of community snippets | DOTween **1.3.045**, then run Setup |
| Want an allocation-free library with a documented DOTween migration table | PrimeTween **1.5.3** |
| Need a paused menu to animate for sure, with a compiled sample in this series | `TweenRunner` + `unscaled: true`, or USS after you have confirmed it under `timeScale == 0` |
Do not mix `TweenRunner`, DOTween, and PrimeTween on the same property. Kill or stop the one you started.
Next: [[5. Menu and HUD Juice Pitfalls]].