← Easy UI

Screen Wizard & CLIs

The Screen Wizard scaffolds complete screens – UXML, controller and optionally a scene – across multiple screen types and genres. Everything can also be invoked headless, so that AI agents and CI use the very same tools.

Screen types

The wizard knows these screen types:

Menus & FlowGameplayContent
MainMenuHUDInventory
SettingsPauseShop
LoadingGameOverLeaderboard
LobbyDialogueCharacterSelect

Wizard CLI

Scaffold screens headless – either via genre + screen list or from a WizardSpec JSON:

Terminal
# Genre + screens
Unity -batchmode -executeMethod EasyUI.Editor.Wizard.EuiWizardCLI.Run \
  -eui-wizard-genre RPG \
  -eui-wizard-screens MainMenu,Settings,Dialogue \
  -eui-wizard-out Assets/UI/Generated

# or from a spec file
Unity -batchmode -executeMethod EasyUI.Editor.Wizard.EuiWizardCLI.Run \
  -eui-wizard-spec Assets/UI/menu.spec.json

Bridge (when the editor is open): Temp/EasyUI/wizard-request.json. Scenes are off by default and are only generated on request.

Capture CLI (screenshot)

Renders a UXML file to a PNG – for visual verification by humans or AI agents. An optional theme can be overlaid:

Terminal
Unity -batchmode -executeMethod EasyUI.Editor.EuiCaptureCLI.Run \
  -eui-uxml Assets/UI/MainMenu.uxml \
  -eui-out  Temp/mainmenu.png \
  -eui-width 1280 -eui-height 720 \
  -eui-theme Assets/EasyUI/Themes/EasyUI.Theme.Neon.uss
!

Do not pass -quit to the Capture CLI – it shuts itself down via a callback as soon as the PNG has been written. With -quit it renders nothing. Bridge: Temp/EasyUI/capture-request.json.

Wiring CLI (controller)

Generates a controller that binds a UXML's named interactive elements to code hooks:

Terminal
Unity -batchmode -executeMethod EasyUI.Editor.Wiring.EuiWiringCLI.Run \
  -eui-wire-uxml Assets/UI/MainMenu.uxml \
  -eui-wire-out  Assets/UI/Generated \
  -eui-wire-class MainMenuController

For AI agents

All three CLIs can also be invoked via the file bridge under Temp/EasyUI/*-request.json when the editor is already open. They survive the domain reloads that a Unity operation can trigger. The typical agent loop:

  1. Scaffold – the wizard generates UXML + controller.
  2. Render – Capture produces a PNG.
  3. Check & fix – the agent looks at the PNG and refines the UXML.

Combined with AI Forge (Scene Verify), this build-look-fix loop closes completely – the foundation for reliable autonomous UI work.