unity-ui-builder

unity-ui-builder is an agent for Claude Code from XeldarAlz/everything-claude-unity. It costs 40 tokens per session (1,168 once invoked), scanned A, original, MIT.

A Unity agent that builds complete UI screens using either UGUI, Unity’s Canvas-based UI system, or UI Toolkit, its newer styling-based system. It writes the code and creates the visual layout, including responsive layouts and safe areas for devices with notches or rounded corners.

In plain words
What is it for?
Use it to create menus, inventory screens, settings pages, HUDs, and other game interfaces with TextMeshPro text and interactive controls.
Why use it?
It brings the screen structure, styling, interactions, and Unity objects together instead of leaving you to assemble each part manually.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the everything-claude-unity plugin — 42 skills, 27 commands, 20 agents, 5 hooks shipped together

Good fit Use it to create menus, inventory screens, settings pages, HUDs, and other game interfaces with TextMeshPro text and interactive controls.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xeldaralz/everything-claude-unity/unity-ui-builder
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.

Clone the repo
git clone --depth 1 https://github.com/XeldarAlz/everything-claude-unity

Made for: Claude Code.

Or install everything-claude-unity, the plugin that ships this one along with the rest of its 42 skills, 27 commands, 20 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unity-ui-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/xeldaralz/everything-claude-unity/unity-ui-builder/github.svg)](https://agentmods.dev/agents/xeldaralz/everything-claude-unity/unity-ui-builder)
Your own site
<a href="https://agentmods.dev/agents/xeldaralz/everything-claude-unity/unity-ui-builder"><img src="https://agentmods.dev/badge/agents/xeldaralz/everything-claude-unity/unity-ui-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for unity-ui-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/xeldaralz/everything-claude-unity/unity-ui-builder"><img src="https://agentmods.dev/badge/agents/xeldaralz/everything-claude-unity/unity-ui-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,168 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00040 $0.01168
Opus 5.5 $0.00016 $0.00467
Sonnet 5.5 $0.00008 $0.00234
Haiku 4.5 $0.00004 $0.00117

Measured 1mo ago against content hash 35f9e8ef5370, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unity-ui-builder 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 1mo 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.

.claude/agents/unity-ui-builder.md · 158 lines

How it starts

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

Unity UI Builder

You build UI screens — writing the code AND setting up the visual hierarchy via MCP.

Approach Decision

Use UGUI (Canvas) When:

  • Project already uses UGUI
  • Need world-space UI (health bars, name plates)
  • Need tight integration with existing MonoBehaviour systems
  • Simple UI with few elements

Use UI Toolkit When:

  • Building complex, data-driven UI (inventory grids, settings menus)
  • Need web-like styling (USS is CSS-like)
  • Building editor tools
  • New project without existing UI system

UGUI Workflow

Step 1: Write UI Scripts

public sealed class MainMenuScreen : MonoBehaviour
{
    [SerializeField] private Button _playButton;
    [SerializeField] private Button _settingsButton;
    [SerializeField] private TextMeshProUGUI _titleText;

    private void Awake()
    {
        _playButton.onClick.AddListener(OnPlayClicked);
        _settingsButton.onClick.AddListener(OnSettingsClicked);
    }

    private void OnDestroy()
    {
        _playButton.onClick.RemoveListener(OnPlayClicked);
        _settingsButton.onClick.RemoveListener(OnSettingsClicked);
    }

    private void OnPlayClicked() { /* ... */ }
    private void OnSettingsClicked() { /* ... */ }
}

Step 2: Build Canvas via MCP

batch_execute:
  - Create Canvas (Screen Space - Overlay, CanvasScaler: Scale With Screen Size)
  - Create Panel (background)
  - Create TitleText (TextMeshProUGUI)
  - Create PlayButton (Button + TextMeshProUGUI child)
  - Create SettingsButton (Button + TextMeshProUGUI child)
  - Attach MainMenuScreen script to Canvas

Step 3: Configure Layout

  • Use manage_components to set RectTransform anchors, positions, sizes
  • Set CanvasScaler reference resolution (1920x1080 typical)
  • Configure safe area handling for notched devices

UI Toolkit Workflow

Step 1: Write UXML

<ui:UXML xmlns:ui="UnityEngine.UIElements">
    <ui:VisualElement class="screen main-menu">
        <ui:Label text="Game Title" class="title" />
        <ui:VisualElement class="button-container">
            <ui:Button text="Play" name="play-button" class="menu-button" />
            <ui:Button text="Settings" name="settings-button" class="menu-button" />
        </ui:VisualElement>
    </ui:VisualElement>
</ui:UXML>

Read the full file on GitHub · 158 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. 1mo ago First seen · 158 lines · 40 tokens per session scan A 35f9e8ef5370

Subscribe to this mod's changes

unity-ui-builder is an agent published in the GitHub repository XeldarAlz/everything-claude-unity (24 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 1,168 once invoked, about $0.0002 per session on Opus 5.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 agents, from other repositories

style-analyzer

Use this agent after UI implementation or when the user requests design consistency audits. Ensures visual consistency, catches design drift from locked tokens, identifies technical debt in UI code, and guards the integrity of the design language. Context: Multiple UI components were built during the cycle. user…

drobins25/craft · 203 tokens

ux-analyzer

Use this agent after UI implementation or when the user requests usability and accessibility review. World-class UX analyst applying Nielsen's heuristics, cognitive psychology, and accessibility expertise. Evaluates HOW users interact — friction, confusion, cognitive load, and accessibility gaps. Context: User just…

drobins25/craft · 222 tokens

art-director

Owns visual identity — style guides, art bible, asset standards, color palettes, UI visual direction.

Donchitos/Claude-Code-Game-Studios · 25 tokens

ux-designer

User experience flows, interaction design, information architecture — user flow mapping, interaction pattern design, onboarding, accessibility requirements.

Donchitos/Claude-Code-Game-Studios · 27 tokens

implementer

Use this agent when implementing story chunks, building features from specs, or continuing active story implementation. Owns the implement → validate → refine loop for each chunk. Produces pristine, production-ready code that matches locked patterns and design tokens. Context: Orchestrator is implementing a story and…

drobins25/craft · 292 tokens

become-researcher

Psychological material collector for /craft:become. Gathers the raw perceptual material from which an expert's mind can be reconstructed - beliefs, scar tissue, axioms, refusals, and emotional patterns. NOT a fact-finder. The crystallizer agent consumes this output directly. Context: Orchestrator is running…

drobins25/craft · 226 tokens