unity-game-ui-toolkit-design
БесплатноБез исполняемых скриптовНе проверенGame UI design using Unity's UI Toolkit (USS/UXML/Flexbox). Includes game UI elements like HUD, health bars, inventory, skill bars, PanelSettings scaling, and…
Об этом скилле
Unity Game UI Toolkit Design Skill
A skill for game UI design using Unity's UI Toolkit (USS/UXML/Flexbox). This comprehensive game UI design guide covers implementation patterns for game UI elements like HUD, health bars, inventory, dialogs, screen scaling with PanelSettings, and Safe Area support.
Overview
UI Toolkit is Unity's next-generation UI system that builds UIs with an approach similar to web technologies (HTML/CSS).
| Feature | Details |
|---|---|
| Layout Engine | Yoga (CSS Flexbox subset implementation) |
| Styling | USS (Unity Style Sheets, CSS-like) |
| Markup | UXML (HTML-like) |
| Supported Version | Unity 2021.2+ (Unity 6.0+ recommended) |
| Use Cases | Game UI, Editor extensions |
Game UI Types
Game UIs are classified into 4 types based on purpose and presentation method. Before starting implementation, clarify which type your UI belongs to.
1. Diegetic
UI that physically exists within the game world. Characters can also perceive it.
| Example | Game |
|---|---|
| HP bar on suit's back | Dead Space |
| Car dashboard | Racing Games |
| Ammo count on weapon | Metro Exodus |
| Handheld map | Far Cry 2 |
<!-- UXML - Diegetic UI (placed in 3D space) -->
<ui:VisualElement class="diegetic-display">
<ui:VisualElement class="diegetic-display__screen">
<ui:Label class="diegetic-display__value" text="87" />
<ui:Label class="diegetic-display__unit" text="%" />
</ui:VisualElement>
</ui:VisualElement>
2. Non-Diegetic
Screen overlay. Pure player-facing information that characters cannot perceive.
| Example | Placement |
|---|---|
| HP bar | Top-left |
| Minimap | Top-right |
| Skill bar | Bottom-center |
| Quest objectives | Right side |
<!-- UXML - Non-Diegetic HUD structure -->
<ui:VisualElement class="hud">
<!-- Top-left: Player status -->
<ui:VisualElement class="hud__top-left">
<ui:VisualElement class="health-bar" />
<ui:VisualElement class="mana-bar" />
</ui:VisualElement>
<!-- Top-right: Minimap -->
<ui:VisualElement class="hud__top-right">
<ui:VisualElement class="minimap" />
</ui:VisualElement>
<!-- Bottom-center: Action bar -->
<ui:VisualElement class="hud__bottom-center">
<ui:VisualElement class="action-bar" />
</ui:VisualElement>
</ui:VisualElement>
3. Spatial
UI that exists within the game world but characters cannot perceive.
| Example |
|---|
| HP bar above enemy's head |
| NPC name display |
| Interactable object icons |
| Path guide lines |
4. Meta
Expresses game state through screen effects. Not direct UI elements.
| Example | Representation |
|---|---|
| Damage | Red vignette at screen edges |
| Low HP | Red pulse across entire screen |
| Status effects | Screen distortion/color changes |
| Underwater | Blue overlay |
/* USS - Meta effect */
.meta-overlay {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 0, 0, 0);
transition-duration: 0.3s;
}
.meta-overlay--damage {
background-color: rgba(255, 0, 0, 0.3);
}
.meta-overlay--low-health {
/* Pulse animation */
}
HUD Screen Layout
Game HUDs have established placement conventions. Players unconsciously expect this layout.
┌─────────────────────────────────────────────────────┐
│ [HP/MP/Status] [Minimap/Compass] │
│ [Buff/Debuff icons] [Quest Objectives]│
│ │
│ Game Screen │
│ (Focus Area) │
│ │
│ [Chat] │
│ [Log/Notifications] [Skill Bar/Items] [Quick Slots]│
└─────────────────────────────────────────────────────┘
Placement Principles
| Area | Elements | Reason |
|---|---|---|
| Top-left | HP, MP, Stamina | Most important status, gaze naturally goes there |
| Top-right | Minimap, Compass | Navigation info, frequently checked |
| Bottom-center | Skill bar, Action bar | Feels close to hands, corresponds to keyboard layout |
| Bottom-right | Inventory, Quick slots | Secondary info, affinity with mouse operation |
| Bottom-left | Chat, Log | Text info, social elements |
| Right side vertical | Quest objectives, Notifications | Additional info, temporary display |
| Screen center | Avoid | Don't obstruct gameplay visibility |
/* USS - HUD grid layout */
.hud {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.hud__top-left {
position: absolute;
left: 16px;
top: 16px;
}
.hud__top-right {
position: absolute;
right: 16px;
top: 16px;
}
.hud__bottom-center {
position: absolute;
left: 50%;
bottom: 16px;
translate: -50% 0;
}
.hud__bottom-left {
po
Установить unity-game-ui-toolkit-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
mcp__unity-mcp-server__find_ui_elementsmcp__unity-mcp-server__click_ui_elementmcp__unity-mcp-server__get_ui_element_statemcp__unity-mcp-server__set_ui_element_valuemcp__unity-mcp-server__simulate_ui_inputmcp__unity-mcp-server__add_componentmcp__unity-mcp-server__modify_componentmcp__unity-mcp-server__set_component_fieldmcp__unity-mcp-server__list_componentsmcp__unity-mcp-server__create_gameobjectmcp__unity-mcp-server__modify_gameobjectmcp__unity-mcp-server__find_gameobjectmcp__unity-mcp-server__manage_asset_databasemcp__unity-mcp-server__edit_structuredmcp__unity-mcp-server__create_classmcp__unity-mcp-server__readmcp__unity-mcp-server__get_symbolsFAQ
Что делает скилл unity-game-ui-toolkit-design?
Game UI design using Unity's UI Toolkit (USS/UXML/Flexbox). Includes game UI elements like HUD, health bars, inventory, skill bars, PanelSettings scaling, and Safe Area support. Use when: game UI design, HUD creation, USS/UXML styling, Flexbox layout, PanelSettings configuration
Как установить скилл unity-game-ui-toolkit-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unity-game-ui-toolkit-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic