mock-to-unity
Mock to Unity
Translate visual mockups into Unity UI Toolkit code (USS/C#) with structural fidelity. Prevents drift through a mandatory translation map, layered implementation, and self-verification.
Skill type: Rigid — follow exactly, no shortcuts.
Related skills: When writing C# controllers (Layers 1, 3, 4), your project's coding standards apply to all C# code. After implementation, test-driven-development applies for controller tests. After self-verification, crucible:quality-gate validates the output.
Architecture Decision: Programmatic C# (Not UXML)
Build VisualElement trees programmatically in C# — do not use UXML. The project has moved to programmatic construction because styleSheets.Add(Resources.Load<StyleSheet>()) silently fails in Unity 6 (Issue #412). UXML-based workflows depend on stylesheet loading that is broken.
Exception: If the target panel already uses UXML (check the existing controller), follow its pattern rather than mixing approaches.