用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Besty0728/Unity-Skills --skill unity-primetween-design命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Automate the Unity Editor through a local REST API — create and edit scripts, build scenes and prefabs, manage assets/materials/lighting, run tests, and drive hundreds of Editor operations across modules. Use when the user wants to actually operate the Unity Editor from chat — create or modify GameObjects/scripts/scenes/assets, batch-edit, or run Editor automation — in any language. Not needed for conceptual Unity Q&A that touches no Editor state — read the matching advisory doc under skills/ instead. 当用户要从对话里实际操作 Unity 编辑器(创建/修改/批量编辑/运行测试)时使用,任何语言均可触发;纯概念问答无需本协议。
Unified batch and async-job orchestration
Index of all Unity Skills modules with per-module mode labels (SA/FA/Mixed). Use to find which module covers a task before loading its doc.
基于 SOC 职业分类
正在显示 SKILL.md
| name | unity-primetween-design |
| description | Source-anchored design rules for PrimeTween 1.4.6 |
Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via
GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
Advisory module. Rules are grounded in the PrimeTween 1.4.6 package installed through com.kyrylokuzyk.primetween.
Mode: Documentation only — no REST skills to gate; load freely under any operating mode.
Load before writing or reviewing:
Tween.Position, LocalPosition, EulerAngles, LocalEulerAngles, Scale, Alpha, Color, Custom, delay, or shake calls.Sequence.Create, Chain, Group, Insert, callbacks, or sequence cycles.Tween.Stop, Complete, StopAll, CompleteAll, PausedAll, progress, time scale, or manual update control.OnComplete, OnUpdate, zero-allocation callback overloads, or target-destruction handling.await tween, ToYieldInstruction, serialized TweenSettings, PrimeTweenConfig, or capacity tuning.| # | Rule | Source anchor |
|---|---|---|
| 1 | PrimeTween uses static Tween factories. Its Tween handle is a struct, and a completed or stopped handle is dead and non-reusable; create a new tween to replay or reverse an animation. | Runtime/Tween.cs:53,256-264; readme.md “Controlling tweens” |
| 2 | Use Sequence.Chain for sequential work, Group for parallel work against the previous item, and Insert for absolute-time overlap. This naming differs from DOTween’s Append/Join vocabulary. | Runtime/Sequence.cs:154,193,202 |
| 3 | A Sequence has its own cycles, cycle mode, easing, update type, and unscaled-time settings at creation. Configure those on Sequence.Create, not through DOTween-style fluent setters. | Runtime/Sequence.cs:108 |
| 4 | Callbacks can bind a target explicitly with OnComplete<T> or sequence callback overloads. That avoids a capturing closure and lets PrimeTween suppress the callback if its target is destroyed. | Runtime/Tween.cs:365-382; Runtime/Sequence.cs:228-281 |
| 5 | PrimeTween detects destroyed Unity targets and exposes targeted warnings through PrimeTweenConfig. Do not assume a DOTween SetLink API exists; own a handle and stop it when your component is disabled when that is the intended lifecycle. | Runtime/Internal/PrimeTweenManager.cs:870-880; Runtime/PrimeTweenConfig.cs:56-87 |
| 6 | await tween and ToYieldInstruction() are supported, but both async state machines and coroutines allocate. For allocation-sensitive animation flows, prefer Sequence. | Runtime/Internal/AsyncAwaitSupport.cs; Runtime/Internal/CoroutinesSupport.cs; readme.md “Async/await” |
| 7 | TweenSettings and TweenSettings<T> are serializable configuration carriers for Inspector-authored tween values; use them instead of inventing a separate animation settings component. |
TweenSettings fields → load inspector.This module targets PrimeTween 1.4.6. Its UPM package supports Unity 2018.4+, but Unity Skills itself maintains a Unity 2022.3+ baseline. Check the installed package version before relying on a newer factory overload or PrimeTween Pro feature.
Runtime/TweenSettings.cs:25-54; readme.md “Inspector integration” |
| 8 | PrimeTweenConfig is static runtime configuration. It has capacity, default ease/update type, warning controls, and manual-update APIs, but it is not a Resources settings asset. | Runtime/PrimeTweenConfig.cs:25-101 |