Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

akiojinот akiojin★ 33 звезды на GitHub12 установок в других каталогах

Об этом скилле

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
Полный SKILL.md на GitHub

Установить unity-game-ui-toolkit-design в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

mcp__unity-mcp-server__find_ui_elements
mcp__unity-mcp-server__click_ui_element
mcp__unity-mcp-server__get_ui_element_state
mcp__unity-mcp-server__set_ui_element_value
mcp__unity-mcp-server__simulate_ui_input
mcp__unity-mcp-server__add_component
mcp__unity-mcp-server__modify_component
mcp__unity-mcp-server__set_component_field
mcp__unity-mcp-server__list_components
mcp__unity-mcp-server__create_gameobject
mcp__unity-mcp-server__modify_gameobject
mcp__unity-mcp-server__find_gameobject
mcp__unity-mcp-server__manage_asset_database
mcp__unity-mcp-server__edit_structured
mcp__unity-mcp-server__create_class
mcp__unity-mcp-server__read
mcp__unity-mcp-server__get_symbols

FAQ

Что делает скилл 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), без исполняемых скриптов.

Похожие скиллы

Сравнить unity-game-ui-toolkit-design с