DocsFormat v2
How to build and ship a game UI in Envy.
Start with the quick start. Every page is also available as Markdown, and llms.txt indexes them for AI tools.
Start
Draw a screen and run it in your game.
- Quick startMake your first game UI screen in Envy: draw it, wire a button to an event, run it in Godot 4, Unity 6 or a web page and hand it off. About ten minutes.
- The editorHow Envy's game UI editor is laid out: pages, screens, selecting, rotating and moving layers, the tools, Preview, document checks and everyday shortcuts.
- Projects and savingWhere Envy keeps your work: drafts on your computer, .envy.json files that save as you edit, version history, and renaming or deleting projects.
Design
Layout, style and components.
- LayoutAnchors, offsets and auto layout in Envy work like Godot's Control anchors and box containers, so one layout holds at 16:9, 21:9, 16:10 and 4:3.
- Style, tokens and fontsFills, gradients, image fills, borders, shadows, blur, text styles, color tokens and embedded fonts in Envy, and how each maps to Godot and CSS.
- ComponentsComponents, instances, variants, overrides and component properties in Envy. Build a button once and keep every copy on every screen in step.
Behavior
Data, events, lists, motion, focus and translations.
- Data, events and listsBind Envy layers to game data, emit named events from buttons, run actions without code, preview scenarios and repeat a row for every item in an array.
- Animation, transitions and overlaysKeyframe animation in Envy with seven easing curves, screen transitions (fade, slide, scale) and overlay screens, identical in Godot and the browser.
- Keyboard and gamepad focusMake Envy menus playable with arrow keys, a d-pad or a stick: automatic focus by position, explicit neighbors, initial focus and focus rings in every runtime.
- LocalizationTranslate an Envy game UI with keyed text and per-language tables, catch clipping with a pseudo-locale, export CSV for translators and switch language in game.
Ship
Exports, the Godot, Unity and web runtimes, the CLI and AI agents.
- Handoff and exportExport an Envy game UI as a Godot or Unity package, playable HTML, the raw document or an AI handoff with AGENTS.md, a contract and typed code.
- Godot runtimeRun Envy game UI in Godot 4.6+ with the EnvyUI node: real Control nodes, data binding, events, animation, overlays, translations and hot reload.
- Unity runtimeRun Envy game UI in Unity 6.3+ with the EnvyUI component: UI Toolkit elements, data binding, events, animation, overlays, translations and live reload.
- Web runtimeRun Envy game UI in any web page or web game with one dependency-free script. Mount a document, set data, listen to events, run overlays and switch language.
- CLIThe envy command-line tool validates Envy documents in CI, prints the event and data contract, outlines screens, writes handoff files and packs projects.
- For AI coding agentsHow AI coding agents work with Envy: the AI handoff package, the event and data contract, the JSON Schema, the CLI, the MCP server, llms.txt and Markdown docs.
Reference
The file format and where the runtimes differ.
- The document formatReference for the .envy.json game UI document: boards, nodes, layout, style, components, bindings, focus, lists, scenarios, localization and animation.
- Known differencesWhere Envy's Godot, Unity and web runtimes draw or behave slightly differently: fonts, clipping, shadows, blur, group opacity, focus search and lists.
- Keyboard shortcutsEvery keyboard shortcut in Envy's editor: pages, tools, editing, selecting, the timeline, the color picker, view and file, and the keys that change a drag.
- TroubleshootingFixes for common Envy problems: saving and autosave errors, blocked exports, fallback fonts, Godot hot reload, locked layers and getting support.
Guides
Game UI how-tos from the blog.
- Godot 4 UI tutorial: Control nodes, containers, CanvasLayer and mouse filtersLearn how Godot 4 UI works: Control nodes, containers, CanvasLayer HUD layering, mouse_filter click blocking, and a clean architecture for menus and HUDs.
- Unity MCP setup guide: connect Claude Code and Codex to Unity 6Set up an open-source Unity MCP server with Claude Code or Codex in Unity 6: Package Manager install, .mcp.json and config.toml, and safer UI Toolkit edits.
- Godot MCP setup guide: connect Claude Code and Codex to Godot 4Set up a Godot MCP server with Claude Code or Codex: compare scene-level and UI-level MCP servers, configure .mcp.json and config.toml, and protect your UI.
- How to build an inventory system in Godot 4: Resources, GridContainer, clear and resetBuild a Godot 4 inventory system with custom Resource data, GridContainer slots, stacking, clear and reset functions, gamepad focus and drag-and-drop.
- Unity UI Toolkit ListView at runtime: dynamic lists, binding and grids in Unity 6Populate a Unity 6 UI Toolkit ListView at runtime: makeItem, bindItem, unbindItem, RefreshItems vs Rebuild, virtualization bugs, grids and gamepad selection.
- A safer MCP workflow for AI agents editing game UISet up a scoped MCP workflow for AI-assisted game UI edits, with read-only inspection, validation, visual review and clear limits on agent access.