Unity UI System Selector by dev-gom/claude-code-marketplace
npx skills add https://github.com/dev-gom/claude-code-marketplace --skill 'Unity UI System Selector'帮助您为 Unity 项目选择合适的 UI 系统,并提供 UGUI 和 UI Toolkit 的实现指导。
UGUI (传统) - 基于 GameObject (2014年推出)。成熟,适用于所有 Unity 版本,社区庞大。缺点:复杂 UI 性能较差,样式功能有限,不支持实时重载。
UI Toolkit (现代) - 保留模式,受 Web 启发的 UXML/USS (2021.2+ 版本)。性能更佳,支持实时重载,具备数据绑定功能。缺点:需要 Unity 2021.2+ 版本,社区规模较小,3D 世界空间 UI 功能有限。
在以下情况使用 UGUI:
在以下情况使用 UI Toolkit:
不确定时:对于 Unity 2021.2+ 版本的新项目,推荐使用 UI Toolkit。
| 功能 | UGUI | UI Toolkit |
|---|---|---|
| 版本要求 | 4.6+ | 2021.2+ |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 性能 | 简单 UI | 所有 UI |
| 样式 | 检视器 | 类 CSS 的 USS |
| 布局 | 手动/组 | 类 Flexbox |
| 编辑器工具 | 良好 | 优秀 |
| 运行时 UI | 优秀 | 良好 |
| 3D 世界 UI | 优秀 | 有限 |
有关 UGUI → UI Toolkit 迁移策略,请参阅 migration-guide.md(中型项目需要 3-4 个月)。
| Unity 版本 | UGUI | UI Toolkit (编辑器) | UI Toolkit (运行时) |
|---|---|---|---|
| 2019.4 LTS | ✅ 完整 | ✅ 基础 | ❌ 不支持 |
| 2020.3 LTS | ✅ 完整 | ✅ 良好 | ⚠️ 实验性 |
| 2021.3 LTS | ✅ 完整 | ✅ 优秀 | ✅ 生产就绪 |
| 2022.3 LTS+ | ✅ 完整 | ✅ 主要 | ✅ 完整 |
使用此技能当:在 UGUI 和 UI Toolkit 之间选择时,理解 UI 系统的权衡,或规划 UI 迁移
使用 @unity-scripter 代理当:实现 UI 组件,编写自定义 UI 脚本,或转换 UI 代码时
使用 @unity-architect 代理当:设计复杂的 UI 架构,规划 UI 数据流,或构建大规模 UI 系统时
使用 /unity:new-script 命令当:使用 UI Toolkit 或 UGUI 模板生成编辑器脚本时
每周安装量
0
代码仓库
GitHub 星标数
76
首次出现
1970年1月1日
安全审计
Helps you choose the appropriate UI system for your Unity project and provides implementation guidance for both UGUI and UI Toolkit.
UGUI (Legacy) - GameObject-based (2014). Mature, works on all Unity versions, large community. Weaker: Complex UI performance, limited styling, no live reload.
UI Toolkit (Modern) - Retained mode, web-inspired UXML/USS (2021.2+). Better performance, live reload, data-binding. Weaker: Requires 2021.2+, smaller community, limited 3D world-space UI.
Use UGUI if:
Use UI Toolkit if:
When in doubt: For new projects on Unity 2021.2+, UI Toolkit is recommended.
| Feature | UGUI | UI Toolkit |
|---|---|---|
| Version | 4.6+ | 2021.2+ |
| Performance | Simple UIs | All UIs |
| Styling | Inspector | CSS-like USS |
| Layout | Manual/Groups | Flexbox-like |
| Editor Tools | Good | Excellent |
| Runtime UI | Excellent | Good |
| 3D World UI | Excellent | Limited |
See migration-guide.md for UGUI → UI Toolkit migration strategy (3-4 months for medium projects).
| Unity Version | UGUI | UI Toolkit (Editor) | UI Toolkit (Runtime) |
|---|---|---|---|
| 2019.4 LTS | ✅ Full | ✅ Basic | ❌ No |
| 2020.3 LTS | ✅ Full | ✅ Good | ⚠️ Experimental |
| 2021.3 LTS | ✅ Full | ✅ Excellent | ✅ Production |
| 2022.3 LTS+ | ✅ Full | ✅ Primary | ✅ Full |
Use this Skill when : Choosing between UGUI and UI Toolkit, understanding UI system trade-offs, or planning UI migration
Use @unity-scripter agent when : Implementing UI components, writing custom UI scripts, or converting UI code
Use @unity-architect agent when : Designing complex UI architecture, planning UI data flow, or structuring large-scale UI systems
Use /unity:new-script command when : Generating Editor scripts with UI Toolkit or UGUI templates
Weekly Installs
0
Repository
GitHub Stars
76
First Seen
Jan 1, 1970
Security Audits
Minecraft旧版主机版C++重制项目 - 支持模组开发、局域网联机和专用服务器
502 周安装