mock-to-unity

Translates mockups, HTML references, or screenshots into Unity UI Toolkit USS and C# code with Theme.uss styling and bug workarounds.

10|2|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/raddue/crucible --skill mock-to-unity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mock-to-unity
Source: https://github.com/raddue/crucible/tree/main/skills/mock-to-unity
Command: npx skills add https://github.com/raddue/crucible --skill mock-to-unity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill bridges the gap between visual designs (mockups, screenshots) and functional Unity UI Toolkit code, ensuring pixel-perfect implementation and adherence to design specifications.

Core Features & Use Cases

  • Visual to Code Translation: Converts mockups, HTML, or screenshots into Unity UI Toolkit's USS and C# code.
  • Structural Fidelity: Maintains the exact hierarchy and element structure defined in the mockup.
  • USS Styling: Generates USS stylesheets using Theme.uss variables for consistent theming.
  • C# Workarounds: Implements necessary C# code for USS limitations and interactive behaviors.
  • Use Case: You have a Figma design for a game's inventory screen. This Skill will generate the C# and USS code to build that exact UI in Unity.

Quick Start

Use the mock-to-unity skill to translate the attached screenshot into Unity UI Toolkit code.

Frequently Asked Questions about mock-to-unity

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

FAQPage Schema
How do I convert a Figma mockup to Unity UI Toolkit code?

To convert a Figma mockup to Unity UI Toolkit code, you translate the visual design into USS stylesheets and C# scripts. This process creates a translation map to maintain exact hierarchy and applies Theme.uss variables for consistent styling.

What's the best way to implement HTML mockups in Unity USS?

The best way to implement HTML mockups in Unity USS is by generating stylesheets using Theme.uss variables and applying C# workarounds for Unity 6 USS bugs. This ensures accurate design translation and resolves known USS limitations.

Can I generate C# scripts from a screenshot for Unity UI?

Yes, you can generate C# scripts from a screenshot for Unity UI. The visual to code translation process reads the screenshot to build a structural translation map, outputting both the necessary C# scripts and USS styling.

Does Unity 6 USS have limitations that require C# workarounds?

Yes, Unity 6 USS has known limitations and bugs that require C# workarounds. When translating mockups to Unity UI Toolkit, C# code is implemented alongside USS to handle styling limitations and enable interactive behaviors.

How do I maintain exact visual hierarchy when translating designs to Unity?

To maintain exact visual hierarchy when translating designs to Unity, the implementation creates a translation map from the mockup. This ensures the generated Unity UI Toolkit code strictly adheres to the original element structure and design specifications.

Why use Theme.uss variables for Unity UI Toolkit styling?

You use Theme.uss variables for Unity UI Toolkit styling to ensure consistent theming across your project. Translating mockups into USS stylesheets with these variables maintains design fidelity while centralizing style management.