Repository navigation
The editor
The scene editor is in src/editor/ (page: editor.html). It runs in a browser (npm run dev, then /editor.html) and as a desktop app (npm run tauri:dev). This guide covers its layout and everyday UI. The designs are in ADR 0059 (Projects window), 0061 (previews and the thumbnail cache) and 0063 (menu bar). For the Worlds panel, see Worlds.
Desktop. The editor opens on the Projects window: New Project…, Open Project…, recent projects and the samples. It's a separate small window with no system title bar, and once it has appeared the editor starts loading, hidden, behind it (ADR 0082). Picking a project hands it to the editor window, which shows itself once the project and its scene view are ready, while the Projects window hides.
- Move it by dragging the black banner at the top.
- Minimise and close are the two small buttons in the card's top-right corner.
- Size. The window follows the card's height. New Project… either fits inside the card or makes the window taller while it's open.
- Close Project in the editor (File menu) hides the editor and shows the Projects window again.
- Closing windows. Closing the editor quits the app (after the unsaved-changes prompt). Closing the Projects window quits only while the editor is hidden.
- The editor window keeps its system title bar.
Browser. There is no second window: the same start screen shows over the editor until a project is open. Open Project… needs File System Access (Chromium browsers); without it, the folder items are disabled and say why.
One row under the title bar: the logo (click for About), the menus, Play, Pause and Step in the middle, and on the right the project's name, a dot while the open scene has unsaved changes, and a Read-only badge for projects that can't be saved.
- File: New Project…, Open Project…, Open Recent ▸ (the last five other projects), Save (Ctrl+S), New Scene, Reload Scripts (folder projects only), Build and Export…, Project Settings (shows the Project panel), Close Project, and Exit on desktop.
-
Edit: Undo and Redo (Ctrl+Z, Ctrl+Shift+Z), named for what they undo; Cut, Copy, Paste, Duplicate and Delete (Ctrl+X, C, V, D, Del); Settings….
- The clipboard items act on the Assets panel's files when that panel had the focus before you opened the menu, and on the Hierarchy's nodes otherwise, as the shortcuts do.
- Create: the Hierarchy's Create menu, at the top level (with a Child variant of each item under the selection).
- Window: one item per panel; picking it brings the panel to the front of its tab group, or adds it back if you closed it, and the ticks show which panels are visible now. Add Panel… opens a checklist of panels to add (a second copy of one included), and Reset Layout puts back the Default layout.
- Layouts: Default and your saved layouts (the one showing is ticked, with a ● when you've changed it since), then Save Layout, Save Layout As… and Manage Layouts… (see Layouts below).
- Help: Documentation (opens the guide on GitHub), Log (the message log), About.
Disabled items say why in their tooltip ("nothing selected", "stop playing to edit the scene", "this project is read-only; open a project folder to save").
Play shortcuts. Ctrl+P plays and stops. Ctrl+Shift+P pauses and resumes; F10 or Ctrl+Alt+P steps one frame (Cmd instead of Ctrl on macOS).
Editing while playing. As in Unity, Play switches the Hierarchy and Inspector to the running game (the World playing the scene; the Show list picks another). Changes made there affect the running game and are gone when you stop, unless you choose Keep values. The scene file can't be changed while playing: pick Scene file (read-only) to look at it, and every edit says "Stop playing to edit the scene."
Keyboard. Press and release Alt on its own to focus the first menu. Then:
- Left and Right move between menus (and switch the open one).
- Down and Up open a menu, and move through its items with Home and End; Right opens a submenu, Left closes it.
- Enter or Space opens a menu or runs an item.
- Escape closes the menu and puts the focus back where it was.
- Alt held with another key or a click (the scene view's Alt+click, for one) is just a modifier and doesn't focus the bar.
- Alt does nothing in a text field or the Code panel's editor.
Under dialogs. While a modal dialog is open the bar is inert: menus don't open and Alt does nothing, as with the global shortcuts.
The editor is a set of docks (strips along the left, right and bottom edges) around the Scene view, which fills what's left. A dock holds one or more tab groups; each group shows one panel and has the others as tabs.
Panels load the first time they show (ADR 0083): the ones your layout shows load at start-up, the rest shortly after, so a tab picked in the first moments may say "Loading…" briefly. Adding a panel in code: an id in layout/model.ts and a lazyComponent entry in ui/panels.tsx; the panel renders its content inside the Panel component (ui/panel/Panel.tsx, Panel from myco/editor for plugins), which also gives each copy of the panel its own view state (usePanelState).
- Move a panel by dragging its tab or header. A highlight shows where it will land; drop elsewhere or press Escape to leave everything as it was.
- Resize by dragging the handles between panels and docks.
-
Collapse a dock by double-clicking its border (a small grip mark shows where) or clicking the chevron in its header.
- A collapsed bottom dock shrinks to its header row. A collapsed side dock becomes a narrow strip with vertical titles.
- Clicking a tab in a collapsed dock opens it. Dragging the border or dropping a panel on the dock expands it too.
- The Scene dock never collapses. There is no animation.
- Tab overflow. When a header is too narrow, tabs shrink slightly and then the rest go behind a » N button at its end (N is how many are hidden). The open panel's tab always stays visible: picking a hidden one swaps it in. You can drag a panel out of that menu like a tab. A collapsed side strip uses the same button.
- Close a panel with the red × at the right of its tab (not shown while its dock is collapsed). The Scene view can't be closed.
- Add panels from the Window menu (a closed panel comes back beside its usual neighbour), or right-click a tab or a header and pick Add Panel… to add the panels you tick to that group. The same menu has Close, Detach and Move to.
- Several copies. A panel can be open more than once (two Hierarchies, say). Copies show the same scene, project and selection, but each keeps its own view: rows expanded, search text, the Assets panel's folder and Grid/List. A new copy starts from the panel's defaults (the Hierarchy with its nodes expanded; prefab contents and UI elements closed, as always). Only one Scene view can be open.
- Reset Layout (Window menu) puts back the Default layout and expands every dock.
-
The working layout is remembered in the browser's or app's local storage (
myco.editor.layout), collapsed docks and detached windows included. If storage is blocked, it just isn't remembered.
A layout is a saved arrangement of panels. The Layouts menu lists Default (built in) and yours; picking one shows it at once (changes you hadn't saved to the current one are dropped).
-
Save Layout As… asks for a name and where to keep it: For me (your own settings: app data on desktop, browser storage on the web, for every project), In the project, or both. A project layout is a file,
<name>.layout.json, in the project's hidden.layouts/folder: it doesn't show in the Assets panel or ship in game builds, and it isn't ignored by the default.gitignore, so the team gets it with the project. Read-only projects can't hold layouts. - Save Layout saves the panels as they are over the current layout. Default can't be saved over (use Save Layout As…).
- Versions. Every save adds a version; nothing is overwritten. Manage Layouts… lists your layouts and draws the selected one's versions as a tree, like the History panel: Apply shows a version, Restore makes it the layout's current one (saving again then starts a new branch). It's also where you rename (the file name follows), move a layout between "for me" and "in the project", or delete it. A layout keeps its last 50 versions.
- Layout files are read again when the editor window comes back into focus, so a layout a teammate committed shows up after a pull.
When a plugin's panel is in a layout and the plugin is off (or missing from the project), the panel keeps its place and title and can be moved or closed as usual; it says it isn't available and which plugin to turn on, with a button to Project Settings › Plugins. Turning a plugin off when layouts show its panels asks first: tick Remove these panels from the layouts to close them (saved layouts get a new version without them, so the old one is a Restore away), or leave it unticked to keep them as unavailable panels.
Detach (right-click a tab) opens the panel in a window of its own. It's part of the same editor: the same project, scene and selection. You can add, move, split and collapse panels in it as in the main window, and Move to Main Window (or to another window) from a tab's menu takes a panel back; panels can't be dragged between windows. The Scene view stays in the main window.
- Closing a detached window closes its panels (the Window menu brings them back). Closing the main window closes the whole editor, detached windows included, and they reopen with the layout next time.
- Saved layouts include their detached windows and where they were. In a browser, windows that open without a click can be blocked as pop-ups: a bar at the bottom then offers Open (one per click; allow pop-ups for the editor to skip it) or Dock here.
The Plugins category of the Project panel lists the first-party plugins (Materials, Sky, Physics 2D, Physics 3D, Navigation, and the others that ship with the editor) with a checkbox each. A plugin that is off is not loaded by the editor, by Play, by the exported game or by the dedicated server: its components are unregistered and its asset kinds and panels are gone. Nothing is deleted. Scenes show its components as missing (plugin Sky is disabled) with their data kept, its files show as generic assets, and everything comes back when you turn it on again.
Only what is off is saved, as "plugins": { "disabled": ["myco.sky"] } in project.json, so projects made before a plugin existed get it switched on, and a name that no plugin has only produces a warning. Plugins that need a plugin you turn off turn off with it (the editor lists them and asks first); turning a plugin on turns on the ones it needs. The change applies at once to the open scene; other open scene tabs update when you switch to them, and during Play it applies when you stop.
The Assets panel shows tiles (or rows, in list view). Tiles that scroll into view get a picture; tiles out of view ask for nothing.
What gets a rendered thumbnail:
| Asset | Picture |
|---|---|
Models (.obj, .fbx, .gltf, .glb) |
the model, framed from three-quarters above |
Materials (.material.json), shader graphs (.shadergraph.json) |
a sphere |
Environments (.hdr, .exr) |
a chrome sphere |
Particle effects (.particles.json) |
the effect about one second in |
Prefabs (.prefab.json) |
their meshes and sprites |
Audio (.mp3, .ogg, .wav) |
the clip's waveform |
Images and sprite slices show as they are. Scenes and everything else get an icon for their kind, and every tile keeps the kind as a small badge. Thumbnails are transparent 256 px stills from one offscreen renderer, a couple per frame, so a big folder fills in over a moment.
Hover. Hold the pointer over a particle effect, or a material or shader graph that uses Time, and its tile animates (one tile at a time). While the Inspector shows a live preview (a model, material, environment, prefab or particle effect is selected), tiles stay still: the preview has the renderer.
Audio tiles. A ▶ button appears on hover and plays the clip; click again to pause. Only one clip plays at a time anywhere in the editor, and it stops when you switch projects or the file goes away.
In the Inspector. Selecting a model, material, shader graph, environment map, prefab or particle effect shows a live preview: drag to turn it, use the wheel to zoom, double-click to reset. It updates as you edit the asset or anything it uses. (The Particle Graph panel keeps its own preview, with play, pause and speed.) Selecting an audio clip shows a player: a waveform you click to seek, Play/Pause, Stop, Loop, Volume, and the clip's length, channels and sample rate. Auto-play on select (off by default) plays a clip as soon as you select it; it's a per-user preference.
Formats. .obj (with its .mtl), .fbx, .gltf and .glb files are models. A .gltf finds its .bin buffers and images beside it, by the paths it names. Draco- and meshopt-compressed glTF files load too; KTX2 textures need Babylon's transcoder, which it downloads from its CDN the first time. Skins, animations, morph targets, cameras and lights in a file aren't imported yet: skinned meshes show their bind pose, and the console says once what was left out.
Adding one to a scene. Drag it into the scene view or the Hierarchy (or press +). A model of one mesh becomes one node; a model of several becomes the file's node tree, each mesh on its own node. Every part sits at the model's origin, so parts turn about the model's origin, not their own pivot.
Import settings. Select the model: the Inspector shows Scale, Up Axis and Normals, and its Materials, one row per material in the file. Put a material asset in a row to draw it wherever the model is used; leave it empty for the model's own. Extract Materials writes each of the model's materials as a material asset in a <model> Materials folder beside it (textures stored inside the model are written as images there) and fills in the rows; the status bar says what a material asset couldn't keep (for example a glTF occlusion map). Apply saves the settings beside the file as <model>.meta.json.
Per renderer. A MeshRenderer's material replaces every material it draws. Its materials list replaces one slot each: the slots are the model's materials in the order its meshes first use them (a built-in mesh has one slot).
In game builds. Build / Export (and npm run export) bakes each model into <model>.mycomesh beside it, which the game loads without parsing the model.
Audio is authored in the Audio Studio (ADR 0341), a window of its own: Window > Audio Studio opens it on the project, and Open in Audio Studio (the Assets panel's context menu) or a double-click opens a playlist, a sample, audio.json's mix, a take or a capture on its Studio screen. Project Settings > Audio only opens the Studio. The editor keeps the audio components' Inspector sections and gizmos and the Scene toolbar's Audio popover, which turns on the occlusion rays of playing sources. Takes and captures are recorded in the Studio (ADR 0416). A project that still has old *.audioevent.json files is offered their migration to playlists once when it opens (a copy of each goes to .myco/migrated/); until then the Assets panel lists them as "Audio Event (old format: migrate)" and nothing plays them.
The editor keeps its own files in .myco/ at the project's root:
-
.myco/history/: the edit history of each scene, so undo survives a restart. Where it goes is a setting (Edit > Settings…): the project folder (the default) or per-user storage outside the project. Read-only projects always use per-user storage. -
.myco/thumbnails/: the cache behind asset previews. Each file is named by a hash of the asset and the files its picture depends on (textures, materials, import settings…), so a changed asset is drawn again and an unchanged one is read back without rendering. Audio waveforms are cached beside them (<key>.peaks.json). Thumbnails nothing refers to any more are deleted a few seconds after a project opens. -
.myco/types/: the engine's.d.tsfiles for scripting, written when the project opens.
Read-only projects (and samples served beside the editor) keep thumbnails in memory for the session instead.
What to commit. A new project's .gitignore keeps thumbnails and ignores the rest of .myco/:
.myco/*
!.myco/thumbnails/
Committing them means a teammate, or a fresh checkout, sees previews at once instead of rendering every one. To keep thumbnails local too, ignore all of .myco/ (delete the second line). Only new projects get this .gitignore; for an older project, add the lines yourself.
Exports. A game build leaves .myco/ out (hidden folders are skipped), so history and thumbnails never ship.
npm run tauri:dev (the desktop editor) and npm run tauri:build (installers) compile src-tauri/ with Rust. On Windows that needs a little more than rustup, because the desktop app links SDL3 for gamepads (ADR 0335), and SDL3 is built from source by CMake during the Rust build (the sdl3 crate's build-from-source-static feature, driven by the cmake crate). Exported desktop games build the same way: from npm run export -- <dir> --target desktop, or from File > Build and Export… > Desktop app in the desktop editor, which checks this computer for Rust, a C compiler, CMake and the Tauri CLI (cargo tauri, or Node.js for npx), builds the installers when they are all there, and lists what to install when they are not (ADR 0406).
What to install
-
Rust with the MSVC toolchain: install rustup and keep its default
x86_64-pc-windows-msvchost. It needs Visual Studio (or the Build Tools for Visual Studio) with the Desktop development with C++ workload, which brings the MSVC compiler and the Windows SDK. -
CMake, on
PATH. With Visual Studio 2026 installed you need CMake 4.2 or later: thecmakecrate picks the newest Visual Studio generator it finds, "Visual Studio 18 2026", and older CMake doesn't know it, so SDL3's configure step fails ("Could not create named generator Visual Studio 18 2026"). Visual Studio 2022 works with older CMake.
When the build fails in SDL3's CMake step
-
An older CMake shadows yours. JetBrains IDEs (CLion, RustRover, Rider) bundle their own CMake, and their terminals put it first on
PATH. Check which one runs withwhere.exe cmake: the first line wins. Put CMake 4.2+ first, or build from a terminal outside the IDE. -
A preview Visual Studio isn't found. CMake doesn't look at preview (Insiders) installations of Visual Studio unless you name one: set
CMAKE_GENERATOR_INSTANCEto its installation folder, for example$env:CMAKE_GENERATOR_INSTANCE="C:\Program Files\Microsoft Visual Studio\18\Insiders". -
A failed configure is cached. After a failed attempt, CMake keeps the generator it chose in the build folder, so fixing
PATHalone doesn't help. Clean SDL3's build first:cargo clean -p sdl3-sys, run insrc-tauri/.
The robust path. Open Developer PowerShell for VS 2026 (from the Start menu; it sets up the MSVC compiler and the Windows SDK for that shell), ask CMake for Ninja, which takes the compiler from that shell and needs no Visual Studio generator at all (Visual Studio installs Ninja with its C++ CMake tools), clean the failed configure and build:
$env:CMAKE_GENERATOR="Ninja"
cd src-tauri
cargo clean -p sdl3-sys
cd ..
npm run tauri:buildnpm run tauri:build writes the installers under src-tauri/target/release/bundle/.
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference