Skip to main content
skill CX Codex

ui-imgui — Claude Code skill: Unity editor IMGUI code

Writes and edits legacy IMGUI code in Unity: EditorWindow classes, custom inspectors, PropertyDrawers and OnGUI scripts for the editor.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Unity-Technologies/skills --skill ui-imgui -a claude-code
Open on GitHub

What ui-imgui does

The skill kicks in for existing IMGUI editor code or when you ask for immediate mode outright. Ask for a new editor window or inspector without naming OnGUI and it will point you to UI Toolkit with CreateGUI() instead of writing IMGUI. That is by design: IMGUI is treated as the legacy path here.

Once active, it loads two reference files. references/templates.md holds the starting templates for EditorWindow, Inspector and PropertyDrawer; references/gui-elements.md covers GUI elements, layout groups and styling. Expect guidance that follows the usual IMGUI discipline: cache GUIStyle objects rather than build them inside OnGUI, drive inspectors with SerializedProperty plus ApplyModifiedProperties(), keep every BeginHorizontal matched by an EndHorizontal. Any script touching the UnityEditor namespace has to sit in an Editor folder, or the build breaks.

Before writing, the skill searches your project for existing editor scripts and copies their naming and folder layout. Projects with their own conventions get code that fits rather than a generic template.

What it helps with

  • extend an existing editor window with OnGUI()
  • build a custom inspector that supports undo
  • write a PropertyDrawer for a type or attribute
  • clean up layout groups in an older tool window
  • debug with an OnGUI overlay at runtime

Example prompts for the agent

  • Add a settings tab to LevelEditorWindow.cs using EditorGUILayout
  • Write an IMGUI inspector for the Enemy component and bind fields through SerializedProperty
  • Find where OnGUI() allocates a new GUIStyle each frame and remove it

How to install ui-imgui

1Skills CLI (Vercel)

npx skills add Unity-Technologies/skills --skill ui-imgui -a claude-code

2Manually: put the files in place

~/.claude/skills/ui-imgui/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ui-imgui/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ui-imgui

How do I install ui-imgui in Claude Code?

Run npx skills add Unity-Technologies/skills --skill ui-imgui -a claude-code. The skill file then lands at ~/.claude/skills/ui-imgui/SKILL.md.

What does ui-imgui do?

It generates and edits Unity editor code in immediate mode: EditorWindow windows, Editor custom inspectors, PropertyDrawer classes and OnGUI() inside a MonoBehaviour. Two reference files supply templates and GUI elements.

Does it cover new editor windows, or should I use UI Toolkit?

For brand-new windows, inspectors and PropertyDrawers the skill itself recommends UI Toolkit with CreateGUI(). It proceeds with IMGUI when you ask for it directly, when you are editing code that already exists, or when the whole toolset is IMGUI.

Similar skills

Everything for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set28

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor