unity-ui

A guide for building user interfaces in Unity, including screens, dialogs, popups, lists, and heads-up displays. A heads-up display is information shown over the game, such as health or score.

In plain words
What is it for?
Use it to plan responsive layouts, dialog navigation, data binding, persistent HUDs, reusable UXML/USS templates, or Canvas prefabs.
Why use it?
It helps choose between Unity’s UI Toolkit and older uGUI system and avoid fragile layouts or interfaces that update unnecessarily every frame.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/thearcforge/hades/unity-ui
Any agent
npx skills add TheArcForge/Hades --skill unity-ui
Clone the repo
git clone --depth 1 https://github.com/TheArcForge/Hades

Made for: Claude Code, Codex.

Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,395 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00029 $0.05395
Opus 5 $0.00015 $0.02697
Sonnet 5 $0.00006 $0.01079
Haiku 4.5 $0.00003 $0.00539

Measured 2d ago against content hash dc035af2e38d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

unity-ui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ClaudeCodePlugin/skills/unity-ui/SKILL.md · 674 lines

How it starts

The opening of the file, as written. The whole thing — 674 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Unity UI

Guidance for building Unity interfaces: choosing between UI Toolkit and uGUI, laying out flexible screens, wiring data to views, managing dialog stacks, and structuring persistent HUDs.

When to Apply

Activate when the conversation involves:

  • Deciding whether to use UI Toolkit or uGUI for a new screen or feature
  • Laying out panels, lists, or HUD elements that must adapt to different resolutions
  • Creating dialog, popup, or modal systems with open/close navigation
  • Binding runtime data (health, score, inventory) to visible UI elements
  • Structuring a persistent HUD overlay that receives frequent updates
  • Reviewing a UI script that has become large or is updating every frame unnecessarily
  • Setting up UXML/USS templates or Canvas prefabs for reuse

Do NOT activate for questions purely about animations on UI elements (see hades:animation-workflow), 3D world-space labels attached to game objects, or input handling that only happens to trigger UI (see hades:unity-input).

Project Context Check

Before making recommendations:

  1. Detect what UI system is already in use:

    • Call graph_query(edgeKind: "references", edgeTargetNamePattern: "UIDocument", edgeTargetKind: "Class") to see if UI Toolkit documents are present
    • Call graph_query(edgeKind: "references", edgeTargetNamePattern: "Canvas", edgeTargetKind: "Class") to see if uGUI canvases exist
    • Call search_by_name("*.uxml") to find UXML templates already authored
    • Call search_by_name("*.uss") to find USS stylesheets in the project
  2. Check recorded decisions in memory:

    • Call recall_memory("UI architecture toolkit uGUI") to find any documented UI strategy
    • If a recalled decision shows warning, surface the conflict to the user before proceeding
  3. Adapt recommendations based on findings:

    • If both UIDocument and Canvas are present → the project is mixed; establish which system owns which surface before adding more UI
    • If only Canvas is found → recommend uGUI unless there is a strong reason to introduce UI Toolkit
    • If only UIDocument is found → stay in UI Toolkit; do not introduce uGUI without a clear reason (e.g., world-space)
    • After the user agrees on an approach not yet documented, call propose_memory_update to record the decision

Read the full file on GitHub · 674 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 674 lines · 29 tokens per session scan A dc035af2e38d

Subscribe to this mod's changes

unity-ui is a skill published in the GitHub repository TheArcForge/Hades (27 stars, last pushed 6d ago), licensed MIT. It adds 29 tokens to every session and 5,395 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories