unity-game-ui-toolkit-design

Design Unity game UI with USS, UXML, and Flexbox layouts.

32|6|Updated Sep 6, 2025
One-click install
npx skills add https://github.com/akiojin/unity-mcp-server --skill unity-game-ui-toolkit-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-game-ui-toolkit-design
Source: https://github.com/akiojin/unity-mcp-server/tree/main/.claude/skills/unity-game-ui-toolkit-design
Command: npx skills add https://github.com/akiojin/unity-mcp-server --skill unity-game-ui-toolkit-design

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-editor.

What problem does it solve?

This Skill provides a comprehensive guide to designing game UI using Unity UI Toolkit (USS/UXML/Flexbox). It covers HUD elements, responsive scaling with PanelSettings, Safe Area handling, and modern UI layout patterns for in-game interfaces.

Core Features & Use Cases

  • UI Toolkit fundamentals: Leverage USS, UXML, and Yoga-based Flexbox for responsive layouts.
  • Game UI patterns: HUD, health bars, inventories, dashboards, and quest panels with scalable panels.
  • Responsive design: PanelSettings configurations and Safe Area adaptations for mobile devices.

Quick Start

Create a UIDocument-based UI, set PanelSettings to Scale With Screen Size, and implement a responsive health bar and inventory panel as a starting point.

Frequently Asked Questions about unity-game-ui-toolkit-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design responsive game UI in Unity using UI Toolkit?

UI Toolkit provides USS styling, UXML markup, and Yoga-based Flexbox layout for responsive game interfaces. Create a UIDocument, configure PanelSettings to Scale With Screen Size, and build HUD elements, health bars, or inventory panels that adapt to different screen resolutions and safe areas on mobile devices.

What's the difference between UI Toolkit and Canvas-based UI in Unity?

UI Toolkit uses modern web-like USS/UXML standards and Flexbox layout, offering better scalability and styling consistency for game UI. Canvas-based UI relies on RectTransform anchoring. UI Toolkit is preferred for complex, responsive interfaces and supports Unity 2021.2+.

Can I use UI Toolkit for HUD, menus, and in-game panels in the same project?

Yes. UI Toolkit handles diegetic, non-diegetic, spatial, and meta UI types, making it suitable for HUDs, health bars, inventories, skill bars, quest dialogs, and dashboards within a single project using consistent USS styling and UXML markup.

How do I handle Safe Area support for mobile games in UI Toolkit?

UI Toolkit integrates Safe Area handling through PanelSettings configuration. Set PanelSettings to scale with screen size and apply safe area constraints to ensure UI elements display correctly on devices with notches, rounded corners, or other screen irregularities.

What USS and UXML knowledge do I need before using UI Toolkit for game UI?

Understanding USS (stylesheet syntax), UXML (markup structure), and Flexbox layout principles is essential. These web-inspired standards enable responsive design and consistent styling. UI Toolkit documentation covers fundamentals, but prior CSS or web layout experience accelerates adoption.

Does UI Toolkit support dynamic UI element creation and modification?

Yes. UI Toolkit includes MCP-server tooling for creating, modifying, and querying UI elements and related GameObjects programmatically. This enables runtime HUD updates, inventory changes, and interactive panel management without requiring manual asset creation.

Related Skills