unity-game-ugui-design
БесплатноБез исполняемых скриптовНе проверенGame UI design using Unity's uGUI (Canvas/RectTransform/Anchors). Includes game UI elements like HUD, health bars, inventory, skill bars, mobile responsive…
Об этом скилле
Unity Game uGUI Design Skill
A skill for game UI design using Unity's uGUI (Unity GUI) system. Provides a comprehensive game UI design guide including implementation patterns for game UI elements like HUD, health bars, inventory, dialogs, mobile responsive design, and Safe Area support.
Quick Start
Basic Canvas Setup
// 1. Create Canvas
mcp__unity-mcp-server__create_gameobject({
name: "Canvas"
})
// 2. Add Canvas component
mcp__unity-mcp-server__add_component({
gameObjectPath: "/Canvas",
componentType: "Canvas",
properties: {
renderMode: 0 // ScreenSpaceOverlay
}
})
// 3. Add CanvasScaler (responsive design)
mcp__unity-mcp-server__add_component({
gameObjectPath: "/Canvas",
componentType: "CanvasScaler",
properties: {
uiScaleMode: 1, // ScaleWithScreenSize
referenceResolution: { x: 1080, y: 1920 }, // Reference resolution
screenMatchMode: 0, // MatchWidthOrHeight
matchWidthOrHeight: 0 // 0=Portrait priority, 1=Landscape priority
}
})
// 4. Add GraphicRaycaster (for interaction)
mcp__unity-mcp-server__add_component({
gameObjectPath: "/Canvas",
componentType: "GraphicRaycaster"
})
Game UI Types
Game UI is classified into 4 types based on placement and representation.
1. Diegetic UI
UI that exists within the game world. Characters can also perceive it.
- Examples: Enemy HP bar above head, car dashboard, in-game signboards
- Canvas Setting: World Space
- Features: High immersion, 3D space display
// World Space Canvas (enemy HP bar above head)
mcp__unity-mcp-server__add_component({
gameObjectPath: "/Enemy/HealthCanvas",
componentType: "Canvas",
properties: { renderMode: 2 } // WorldSpace
})
mcp__unity-mcp-server__set_component_field({
gameObjectPath: "/Enemy/HealthCanvas",
componentType: "RectTransform",
fieldPath: "sizeDelta",
value: { x: 100, y: 20 }
})
2. Non-Diegetic UI
Overlay UI visible only to the player.
- Examples: HUD, score display, minimap, skill bar
- Canvas Setting: Screen Space - Overlay
- Features: Always in front, screen-fixed
// HUD overlay Canvas
mcp__unity-mcp-server__add_component({
gameObjectPath: "/HUDCanvas",
componentType: "Canvas",
properties: { renderMode: 0 } // ScreenSpaceOverlay
})
3. Spatial UI
UI that exists in 3D space but is not part of the game world.
- Examples: Destination marker, interact icon, quest marker
- Canvas Setting: Screen Space - Camera or World Space
- Features: Billboard (always faces camera)
// Billboard marker
mcp__unity-mcp-server__add_component({
gameObjectPath: "/QuestMarker/Canvas",
componentType: "Canvas",
properties: { renderMode: 2 } // WorldSpace
})
// Add billboard script
mcp__unity-mcp-server__add_component({
gameObjectPath: "/QuestMarker/Canvas",
componentType: "BillboardUI"
})
4. Meta UI
Full-screen effect UI.
- Examples: Damage red flash, stamina depletion vignette, status effect overlay
- Canvas Setting: Screen Space - Overlay (frontmost sorting order)
- Features: Full screen, transparency animation
// Damage flash Canvas
mcp__unity-mcp-server__add_component({
gameObjectPath: "/EffectCanvas",
componentType: "Canvas",
properties: {
renderMode: 0,
sortingOrder: 100 // Frontmost
}
})
// Flash Image (full screen)
mcp__unity-mcp-server__create_gameobject({
name: "DamageFlash",
parentPath: "/EffectCanvas"
})
mcp__unity-mcp-server__add_component({
gameObjectPath: "/EffectCanvas/DamageFlash",
componentType: "Image",
properties: {
color: { r: 1, g: 0, b: 0, a: 0 } // Transparent red
}
})
HUD Screen Layout
Game HUDs have industry-standard placement conventions.
Standard Layout Diagram
┌─────────────────────────────────────────────────────┐
│ [HP/MP Bar] [Mini Map] [Settings] │ ← Top
│ ★ Top-Left: HP/MP/Stamina Top-Right: Minimap, Settings
│ │
│ │
│ [Quest] [Buff Icons] │ ← Upper-Middle
│ ★ Quest objectives Buff/Debuff icons │
│ │
│ [Center] │
│ Crosshair/Interact │
│ │
│ [Chat] [Inventory] │ ← Lower-Middle
│ │
│ │
│ [Skill Bar] [Action Buttons] │ ← Bottom
│ ★ Skills/Items Action buttons │
└─────────────────────────────────────────────────────┘
Placement Principles
| Position | Anchor | UI Elements | Reason |
|---|---|---|---|
| Top-Left | (0,1) | HP/MP/Stamina | Critical |
Установить unity-game-ugui-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__get_component_typesmcp__unity-mcp-server__create_gameobjectmcp__unity-mcp-server__modify_gameobjectmcp__unity-mcp-server__find_gameobjectmcp__unity-mcp-server__get_hierarchymcp__unity-mcp-server__edit_structuredmcp__unity-mcp-server__create_classmcp__unity-mcp-server__readmcp__unity-mcp-server__get_symbolsFAQ
Что делает скилл unity-game-ugui-design?
Game UI design using Unity's uGUI (Canvas/RectTransform/Anchors). Includes game UI elements like HUD, health bars, inventory, skill bars, mobile responsive design, and Safe Area support. Use when: game UI design, HUD creation, Canvas setup, mobile UI, Anchors configuration
Как установить скилл unity-game-ugui-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unity-game-ugui-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