This document tracks the editor as its own product inside the workspace.
The runtime engine roadmap lives in ROADMAP_ENGINE.md.
The current shell already has:
- a dedicated
editor/crate - a rengine-native desktop shell bootstrap running on the engine runtime
- a custom canvas-driven shell foundation replacing the old
eframe/eguibootstrap - a responsive top bar
- scene tabs for switching between in-progress documents
- a project/filesystem browser with native filtering and direct open-selected flow
- a scene hierarchy panel with collapsible subtrees
- an inspector surface with engine-native editing for scene metadata, selected-node transforms, sprite sources, and camera preview properties
- an activity log and JSON preview panel
- a draggable and pannable 2D scene canvas
- add-node actions from the native inspector shell plus popup-driven hierarchy and viewport context menus
- real sprite-image previews in the native viewport
- content-aware list scrolling with native scroll indicators
- Camera2D bounds preview driven by adjustable scene window size, camera zoom, and optional camera-local view size
- native open/save/save-as scene flow through file dialogs
- multi-select hierarchy and viewport selection with duplicate, reparent, reorder, grouped dragging, and selection-history shortcuts
- a frame-selection shortcut that recenters the viewport on the current selection or whole scene
- grid-snapped viewport dragging with selection-center guides and live snap feedback
- a first translate gizmo with plane, X-axis, and Y-axis dragging for selected nodes
- explicit top-left App/File/View/Theme menu entry points so key actions are no longer hidden behind shortcuts
- switchable editor shell themes (Slate, Graphite, Ember) for readability and preference
- a
Scene2Druntime bridge that supports marker export, single-sprite export, and grouped multi-sprite prefab export
The migration is now in the toolkit-rebuild phase: the editor no longer depends on egui for bootstrap, and the inspector now uses the engine's own UI layer for text inputs, toggles, sliders, transform editing, sprite-file assignment, and popup-based kind changes. The project browser and scene hierarchy now support native filtering, collapse state, and content-aware scrolling, while the viewport now supports real sprite previews and middle-mouse panning, but the shell still needs richer engine-native widgets such as split panes, reusable tree controls, and broader editing flows before it reaches feature parity.
The editor is successful when a developer can build and iterate on a game like the current platformer or top-down samples without hand-authoring most scene, UI, and authoring data in Rust.
That means the editor must eventually cover:
- project setup and file management
- asset browsing and safe reference-aware file operations
- scene authoring, prefab reuse, and script attachment
- UI authoring
- gameplay markers such as spawns, triggers, collision zones, and paths
- play-in-editor, logs, validation, and recovery
- reliable save formats that stay diffable and merge-friendly
- Recent projects list, create project flow, open project flow, and template-based project bootstrap.
- Per-project editor settings and saved window layouts.
- Crash recovery, autosave recovery, and unsaved-document restore.
- Command palette and shortcut management.
- Task runner integration for build, test, export, and custom project tasks.
- Tree view, list view, filters, search, and favorites.
- Create, rename, move, duplicate, delete, and reveal-in-explorer/file-manager operations.
- Drag and drop between folders and into authoring documents.
- Safe rename and safe move with reference rewriting.
- Asset labels, bookmarks, collections, and quick filters.
- Dependency viewer for "used by" relationships.
- Background indexing and refresh so the browser never blocks the UI thread.
- Texture preview with dimensions, alpha, filtering, and packing metadata.
- Audio preview with waveform, duration, bus target, and looping metadata. (Waveform, playback and loop points done: the Audio tab. Bus target not yet.)
- Sprite sheet preview with grid slicing, named regions, and animation preview.
- Mesh preview for OBJ and glTF assets.
- Font preview and fallback chain inspection.
- JSON/resource document preview and schema validation.
- Bulk import, reimport, and missing-asset repair tools.
- Stable scene IDs and node IDs.
- Merge-friendly text formats for scenes, prefabs, UI docs, tilemaps, triggers, splines, and metadata.
- Versioned document schemas with upgrade paths.
- Explicit separation between editable authoring state and runtime-instantiated state.
- Save, Save As, duplicate scene, scene templates, and multi-document tabs.
- Strong validation for broken references, duplicate IDs, missing scripts, and invalid nesting.
- Tree hierarchy with nesting, reparenting, folders, visibility toggles, and lock toggles.
- Box selection, multi-select, and batch edits.
- Searchable outliner filtering.
- Selection history and frame-selection shortcuts.
- Override indicators for nested scenes and prefab instances.
- Pan, zoom, frame selection, and rulers.
- Grid, guides, snapping, and world origin visualization.
- Translate, rotate, scale, pivot, and origin editing.
- Duplicate, align, distribute, and reorder operations.
- Layer visibility toggles and selection masking.
- Camera preview and safe-area overlays.
- Visual continuity under interaction: background tasks, cached previews, and continuous repaint during drags.
- Orbit, pan, fly, and focus controls.
- 3D transform gizmos and local/global axes.
- Lighting preview, camera preview, and navigation helpers.
- Selection picking and outliner synchronization.
- View modes for lit, unlit, collision, wireframe, and debug overlays.
- Prefab assets and nested scene assets as first-class documents.
- Apply/revert override workflows.
- Instance override inspection in the hierarchy and inspector.
- Template scenes for common bootstraps such as top-down map, platformer stage, menu, and HUD.
- Attach external scripts to nodes, scenes, UI widgets, triggers, and prefabs.
- Exposed-field editing in the inspector.
- Drag and drop reference assignment from scene tree and content browser into script fields.
- Missing-script detection and repair tools.
- Metadata for tags, layers, groups, teams, collision channels, and gameplay categories.
- Searchable add-component or add-behavior workflow.
- Dedicated UI document type rather than forcing HUD layout into ad hoc scene nodes.
- Widget palette for labels, buttons, panels, rows, grids, scroll regions, checkboxes, sliders, text inputs, images, tooltips, and animation hooks.
- Visual create, resize, reorder, and reparent workflows.
- Anchors, margins, padding, alignment, spacing, and resolution presets.
- Theme, style, and variant editing.
- UI templates and reusable HUD/menu chunks.
- Runtime preview for keyboard, gamepad, and mouse navigation.
- Box, circle, polygon, and spline authoring.
- Trigger authoring with events, filters, layer masks, and metadata.
- Path authoring for AI routes, patrol paths, camera rails, conveyors, and motion guides.
- Tilemap editor with layers, paint/fill tools, metadata, autotiling, and collision views.
- Collision overlay and bounds preview.
- Particle editor with curves, presets, and live preview.
- Animation and timeline editor for clips, transitions, and state machines.
- Cutscene sequencing editor.
- Audio mixer or bus editor.
- Localization table editor.
- Save-data and replay inspection tools once runtime support exists.
- Play, pause, stop, and frame-step inside the editor.
- Preserve authoring state when entering play mode and restore it on exit.
- Console output and log filtering backed by the engine debug system.
- Runtime object inspection while the game is live.
- Clickable errors that jump to the responsible asset, node, or script slot.
- Hot reload for assets and authored documents while the editor is open.
- Overlay toggles for collision, triggers, paths, FPS, and other debug views.
- Autosave and timed backups.
- Corrupted-document diagnostics and recovery flows.
- Project-wide validation passes.
- Broken reference reporting before delete or rename operations complete.
- Safe destructive actions with previews and confirmations.
- Build profiles surfaced in the editor.
- Launch selected sample or game target from the editor.
- Export/build packaging workflows when the runtime supports them.
- Scene and UI document adapters that map editor-authored data cleanly into runtime formats.
- Asset bundle and manifest integration rather than parallel content systems.
- Changed-files view.
- Diff and open-file shortcuts.
- Conflict warning surfaces.
- Locking or edit-intent hints where useful.
- Reference-aware operations that behave well in git-based workflows.
- Extension/plugin API for custom inspectors, validators, importers, and tools.
- Internal command stack for undo and redo across every editing operation.
- Clear separation between shell UI, document state, runtime bridge, and background services.
- Background services for indexing, preview generation, validation, and import processing.
- A clear editor guide that explains the shell, why it is structured this way, and how to build a first game with it.
- Project templates for common starter games.
- Better sample-to-editor bridge docs so existing examples can migrate incrementally instead of all at once.
For a platformer or top-down project to feel realistic in the editor, the editor must support:
- player, enemy, pickup, checkpoint, and camera spawn markers
- static prop placement and prefab reuse
- collision shapes and trigger volumes
- patrol paths or motion paths where needed
- level-specific parameters and script-exposed fields
- HUD and pause/menu authoring
- play-in-editor with fast restart
- logs, validation, and missing-reference warnings
- safe save formats that can be committed and reviewed in git
For a content-driven game such as the planned motorsport roguelike, the editor also needs to make these workflows cheap:
- route-loop markers, lap checkpoints, pit entry and exit volumes, and camera anchors
- encounter nodes, reward nodes, meta-progression hooks, and authored run-flow markers
- reusable authored chunks for trackside props, hazard sets, spawn packs, and UI sections
- path editing for rival traffic, escorts, camera rails, and scripted movement loops
- structured data documents for upgrades, cars, crews, sponsors, loot pools, and run-generation tables
- HUD, menu, tooltip, and card-like UI authoring that can be previewed without hand-building every screen in Rust
- fast play-in-editor restart so balance and content pacing can be tuned in minutes instead of rebuild cycles
- validation for broken references, duplicate IDs, missing scripts, invalid prefab wiring, and missing assets before a run boots
If the goal is to stop hardcoding most game content in Rust, the first genuinely useful editor must include:
- project/file browser
- scene hierarchy with nesting
- viewport selection, gizmos, guides, and snapping
- inspector and exposed-property editing
- prefab or nested-scene workflow
- external script attachment
- trigger, shape, and path tools
- visual UI builder
- play-in-editor with logs
- undo/redo, autosave, and safe reference updates
If the goal is to make building games in rengine materially easier, the editor work should land in this order:
- undo/redo plus autosave and recovery so the shell stops feeling fragile
- multi-select, box selection, duplicate, reparent, reorder, and selection-history workflows
- rotate or scale gizmo follow-up plus richer spatial-editing polish on top of the current snapping, guides, and translate-gizmo baseline
- gameplay markers, trigger volumes, and path tools aimed at checkpoints, route loops, encounter nodes, and camera rails
- prefab assets, nested scenes, and reusable authored chunks for repeated gameplay setups and prop assemblies
- stronger exposed-property editing plus structured data documents for gameplay tables and content metadata
- play-in-editor, fast restart, log filtering, and runtime inspection once authored content can drive a level
- dedicated UI documents, reusable HUD or menu chunks, and input-preview workflows
- safe filesystem refactors with reference rewriting, dependency viewing, and project-wide validation
- specialized editors such as particle, animation, cutscene, audio, and localization tooling after the core authoring path is stable
- Keep the editor in its own crate.
- Finalize stable IDs and merge-friendly document formats.
- Build the command stack and undo or redo model.
- Separate editable document state from runtime state.
- Keep improving shell responsiveness, background work scheduling, and panel stability.
- Add project management, layout persistence, command palette, and autosave.
- Finish safer filesystem workflows.
- Add rotate, scale, pivot, and alignment follow-up on top of the current hierarchy editing, multi-select, reparenting, snapping, guides, and translate-gizmo baseline.
- Add tabs and multiple documents.
- Expand the current runtime scene bridge beyond grouped sprite composition into richer prefab and nested-scene workflows.
- Add prefab assets, nested scenes, script attachment, reference assignment, and richer inspector editing.
- Add dedicated UI documents and runtime preview.
- Add authored geometry, triggers, path tools, and tilemap editing.
- Add play-in-editor, runtime inspection, validation, and hot reload integration.
- Add particle, animation, cutscene, audio, and localization editors.
- Add plugin hooks, source control awareness, and stronger project-scale workflows.
- Script attachment + typed-param inspector: a project
scripts.manifest.json(path + display name + typed param schema) drives an inspector script picker (replacing the free-text field; a check marks the attached script, plus a Clear button). Attaching seeds the script's param defaults; each manifest param renders a typed widget (text for String/Number/Color, checkbox for Bool) that commits toparam_<name>node properties. Params travel onSceneScriptBinding2D(typedparam/param_f32/param_bool/param_color), so a single registered script is configured per-instance instead of needing onescript_pathper behavior. Scene + project validation now build a registry from the manifest (SceneScriptRegistry2D::from_known_paths) so unknownscript_paths surface in the Validation panel. An Open Script in Editor button opens the (compiled-Rust) source in the OS editor. Proven in Formula R: the title menu collapsed fourtitle_*scripts into one param-drivenmenu_action.rs, and pit-wall command seats now issue an editor-authoredparam_command. Enum param kind landed:ScriptParamKind::Enum+ aScriptParamDef.optionslist; the inspector renders a cycle-selector (a button that advances through the declared options on click) so only valid values can be authored, withis_valid_value/next_optionhelpers on the engine side and thefeature-scene-scriptssample manifest converted to an enumaction(spawn/clear) as the proof point. Next:asset-refparam kind (an asset picker), and threading enumoptionsinto scene validation so an off-listparam_<name>value is flagged (the cycle-selector prevents it at authoring time; validation would catch hand-edited JSON). - Play-in-editor with fast restart: a top-bar Play button saves the active scene and launches the project's game target (
cargo runin the project root); Play while a game is running kills and relaunches it (fast restart), and a Stop button (shown only while running) kills it. The editor reaps the child on exit/quit and detects a self-closed game so the buttons clear automatically. Logs land in the activity log; the launched game runs in its own window. Next: a manifestrun_commandoverride for projects with a specific bin/target, in-editor log capture, and pause/frame-step. - Scene validation on save: every save runs the engine's
validate_editor_sceneover the active document and reports issues (duplicate/dangling/self/cyclic node ids, sourceless sprites, missing scripts/assets) to the activity log, with node ids and severities. A headless test guards editor-document → validator format compatibility. - Dedicated Validation bottom tab: lists the active scene's issues (errors red, warnings amber) separately from the activity log; clicking a row selects the offending node in the viewport. Stable random node ids + a
versionfield on saved documents, plus project-wide validation (including cross-scene id collisions) summarised in the activity log on project open. Next: live (continuous) validation as the document changes, and dependency ("used-by") tracking.
- Add rotate and scale gizmo follow-up, plus alignment and distribution workflows, on top of the new grid-snapped dragging, selection guides, and translate gizmo.
- Add marker, trigger, and path workflows aimed directly at route loops, checkpoints, encounter nodes, and camera anchors.
- Add basic prefab and reusable authored-chunk workflows aimed directly at the top-down, platformer, and content-heavy 2D examples.
- Expand the runtime bridge with richer properties, stronger prefab composition, better nested-scene/export workflows, and safer validation.
- With play-in-editor landed, add dedicated UI documents and in-editor log capture as the next productivity jump.