unity-game-ugui-design

Design responsive Unity uGUI layouts with Canvas, RectTransform, and anchors.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill offers patterns and guidance for building in-game UI using Unity uGUI, including HUD elements, health bars, inventories, and responsive layouts with anchors.

Core Features & Use Cases

  • uGUI patterns: Canvas setup, RectTransform anchoring, and layout decisions.
  • HUD & inventory design: Practical patterns for Health, Stamina, Minimap, and Inventory grids.
  • Responsive & safe areas: Mobile-friendly layouts and Safe Area considerations.

Quick Start

Create a Canvas, add a HealthBar panel, and set up an Inventory grid with anchored positions for portrait layouts.

Frequently Asked Questions about unity-game-ugui-design

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

FAQPage Schema
How do I design responsive UI layouts in Unity with uGUI?

Design responsive UI layouts in Unity by creating a Canvas, using RectTransform anchoring strategies, and configuring CanvasScaler for different screen sizes. Apply Safe Area considerations for mobile devices and choose between Screen Space Overlay, Screen Space Camera, or World Space rendering modes based on your UI placement needs.

What's the best way to set up a health bar and HUD elements in Unity?

Set up HUD elements like health bars by creating UI panels with anchored RectTransforms within a Canvas, then wire interaction handling through GraphicRaycaster and input modules. Use data-driven UI updates to bind game state to health, stamina, and minimap displays.

How do I create mobile-safe UI layouts with Unity anchors?

Create mobile-safe layouts by setting RectTransform anchors to account for notches and safe areas, then use CanvasScaler to scale UI responsively across devices. Position critical UI elements within the Safe Area bounds to ensure visibility on all screen shapes.

Can I use uGUI to build inventory grids with responsive positioning?

Yes, build inventory grids by anchoring UI elements in portrait layout patterns using RectTransform, then apply CanvasScaler configurations to maintain responsive spacing. Wire data-driven updates to populate grid cells dynamically from inventory state.

What are the limitations of Screen Space Overlay vs. World Space UI in Unity?

Screen Space Overlay renders UI fixed to the screen and ignores camera settings, ideal for HUDs. World Space UI renders in 3D space and requires camera setup, suited for in-world labels or interactive objects. Choose based on whether your UI should follow the player view or exist in the game world.

Do I need specific input handling setup for interactive uGUI components?

Yes, interactive uGUI requires GraphicRaycaster on the Canvas and an input module (Standalone or Touch) in the EventSystem to detect clicks and input. Configure these components to enable button interactions, drag operations, and responsive feedback on your UI elements.

Related Skills