unity-primetween-design

Provides source-anchored design rules for writing and reviewing PrimeTween 1.4.6 code in Unity.

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-primetween-design-pikachu0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-primetween-design
Source: https://github.com/pikachu0310/codex-agent-ops-public/tree/main/.agents/skills/unity-skills/skills/primetween-design
Command: npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-primetween-design-pikachu0310

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? PrimeTween's API differs significantly from DOTween and other tweening libraries, and guessing at its lifecycle, sequence, or callback semantics leads to subtle animation bugs. This Skill grounds every design decision in the actual PrimeTween 1.4.6 source code so generated or reviewed tween code matches real library behavior. ## Core Features & Use Cases - Source-Anchored Rules: Eight critical rules covering Tween struct handles, Sequence Chain/Group/Insert semantics, callback target binding, destroyed-target detection, async/await allocation costs, TweenSettings, and PrimeTweenConfig, each cited to specific source files and line numbers. - DOTween Migration Guidance: Clarifies vocabulary and API differences (e.g., Chain/Group/Insert vs Append/Join, no SetLink) to prevent incorrect assumptions when porting tween code. - Module Routing: Directs to sibling Unity skill modules for async control flow, Inspector integration, performance analysis, and Addressables lifetime concerns. - Use Case: When writing a UI animation using Sequence.Create with chained tweens and an OnComplete callback, load this module to confirm correct cycle configuration, target-bound callbacks, and handle lifecycle before committing the code. ## Quick Start Review my PrimeTween sequence code and check it against the PrimeTween 1.4.6 design rules before I commit it.

Frequently Asked Questions about unity-primetween-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sequence tweens in PrimeTween?

Use Sequence.Chain for sequential tweens, Group for parallel tweens against the previous item, and Insert for absolute-time overlap. This differs from DOTween's Append/Join vocabulary, and cycles, easing, and update type are configured on Sequence.Create rather than fluent setters.

What is the difference between PrimeTween and DOTween?

PrimeTween uses static Tween factories returning struct handles, while DOTween uses different sequencing vocabulary and fluent setters. PrimeTween has no SetLink API; instead it detects destroyed targets and reports warnings through PrimeTweenConfig.

Can I reuse a PrimeTween Tween handle after it completes?

No, a completed or stopped Tween handle is dead and non-reusable. Create a new tween to replay or reverse an animation, since the handle is a struct that becomes invalid once its lifecycle ends.

Does PrimeTween support async/await in Unity?

Yes, PrimeTween supports await tween and ToYieldInstruction, but both async state machines and coroutines allocate memory. For allocation-sensitive animation flows, prefer using Sequence instead.

How do I avoid closure allocations in PrimeTween callbacks?

Use OnComplete<T> or sequence callback overloads that bind a target explicitly. This avoids capturing closures and lets PrimeTween suppress the callback automatically if the bound target is destroyed.

Which Unity versions does PrimeTween 1.4.6 support?

The PrimeTween UPM package supports Unity 2018.4 and later, though the Unity Skills suite itself maintains a Unity 2022.3+ baseline. Check the installed package version before relying on newer factory overloads or PrimeTween Pro features.