Quick start
Envy is a game UI editor. You draw screens on a canvas, and the same file runs natively in Godot 4, Unity 6 and the browser. This page takes you from an empty project to a menu running in your game.
1. Open a project
Envy is a desktop app for Windows, with Linux next: get it on itch.io.
On Projects, choose New project and pick a template:
- Envy Starter Pack: five screens that teach the basics, with components, bindings, a list, overlays and animations. The best first project.
- Game UI kit: 15 screens on one token set. See the kit.
- A blank 1920 × 1080 or 1080 × 1920 screen.
Under Showcase projects, The Last Hunt · UI kit v2 is a finished game UI with 20 screens. The examples and clips in these docs use it.
Envy keeps your work as a draft on your computer. Press Ctrl S once to save the project as a .envy.json file: from then on, Envy writes every change to that file. See Projects and saving.
2. Draw a screen
- Press F for a frame, T for text, B for a button. V goes back to select.
- Select a few layers and press Shift A to wrap them in an auto-layout row. On a frame, Shift A turns auto layout on or off. In Godot, auto layout becomes box containers.
- Pin layers to edges with the Anchors box in the inspector’s Layout section, so the screen holds at other aspect ratios. See Layout.
- Select a layer and press Ctrl Alt K to turn it into a component. Its copies stay in step with it. See Components.
3. Make it do something
- Select a button and open the inspector’s Interact tab. Under On click, add an action: Send event to game, Go to screen, Open screen over this one, Close overlay, Play animation, Set data or Toggle data. In The Last Hunt, the New hunt button sends
new_hunt, then goes to 03 Character select. - Bind a text or progress layer to a data path like
player.hpunder Data bindings, or writeHP {player.hp}in a text layer. - Give the document sample data in Data & events › Sample JSON, so the canvas shows real values. See Data and events.
Press Ctrl Enter to preview. Buttons, transitions and animations run for real.
4. Run it in your game
Exports are in the Hand off menu above the canvas, and on the Handoff page (Ctrl E).
Godot 4.6+: export the Godot 4 package and unzip it into the root of your Godot project. Enable Envy UI in Project Settings › Plugins, then open envy_demo.tscn and press F6 to see your UI run. In your own scene, add an EnvyUI node:
var ui := EnvyUI.new()
ui.document_path = "res://ui/my_ui.envy.json"
add_child(ui)
ui.ui_event.connect(func(event, payload):
if event == "new_hunt": start_hunt())
ui.set_data("player.hp", 72)
Unity 6.3+: export the Unity package and unzip it into the root of your Unity project, next to Assets/. Add the EnvyDemo component to an empty GameObject and press Play. In your own scripts, add an EnvyUI component:
var ui = gameObject.AddComponent<EnvyUI>();
ui.LoadDocument(document); // Assets/UI/my_ui.envy.json
ui.UiEvent += (evt, payload) => {
if (evt == "new_hunt") StartHunt();
};
ui.SetData("player.hp", 72);
Web: export Web HTML for a playable page, or load the runtime and mount the document into any element:
<div id="ui" style="width: 100vw; height: 100vh"></div>
<script src="envy-runtime.js"></script>
<script type="module">
const doc = await fetch("ui/my_ui.envy.json").then((r) => r.json());
const ui = Envy.mount(document.getElementById("ui"), doc);
ui.on("new_hunt", () => game.startHunt());
ui.setData("player.hp", 72);
</script>
5. Hand it off
Export the AI handoff package to get a zip a programmer or a coding agent can work from: AGENTS.md, the event and data contract, screenshots and typed code for Godot, Unity (C#) and TypeScript. See Handoff.
Next
- The editor: canvas, panels and screens.
- Projects and saving: files, version history and the Projects page.
- Keyboard shortcuts: every shortcut in one place.
- Godot runtime, Unity runtime and web runtime.
- The document format, if you want to read or write
.envy.jsonby hand.