Skip to main content

Module editor

Module editor 

Source
Expand description

In-Engine Editor — master state, camera, undo/redo, grid, shortcuts.

This module is the entry point for the editor subsystem. It owns the top-level EditorState and wires together all sub-panels.

Re-exports§

pub use inspector::Inspector;
pub use hierarchy::HierarchyPanel;
pub use console::DevConsole;
pub use gizmos::GizmoRenderer;

Modules§

console
Developer console — command dispatcher, log ring-buffer, expression evaluator, auto-complete and history.
gizmos
Gizmo renderer — 3D manipulation handles, measurement, annotations, selection outlines, light/collider/frustum/path/vector-field visualisations.
hierarchy
Hierarchy panel — scene-tree view with full drag-drop, multi-select, prefab support, search/filter, undo, serialisation and keyboard navigation.
inspector
Inspector panel — property editor for any scene object.

Structs§

DeleteEntityCommand
Delete an entity from the scene.
EditorCamera
Free-fly camera that is completely independent of the game camera. Controlled by WASD + mouse look in the editor viewport.
EditorConfig
Persistent editor preferences.
EditorLayout
EditorState
The top-level editor state. Owns everything the editor needs to function.
EditorStats
Live performance / scene statistics displayed in the editor overlay.
EntityId
Opaque handle to a scene entity.
GlyphId
Opaque handle to a glyph.
GridRenderer
Configuration and rendering logic for the infinite editor grid.
GroupSelectionCommand
Group multiple entities together under a shared label.
MoveEntityCommand
Move one or more entities by a delta vector.
PanelRect
Which editor panels are currently visible and their pixel bounds.
SelectionSet
Tracks which entities / glyphs are currently selected in the editor.
SetPropertyCommand
Set a named string property on an entity.
Shortcut
A keyboard shortcut (key + modifiers).
ShortcutRegistry
Maps shortcuts to editor actions.
SpawnEntityCommand
Spawn an entity at a given position.
UndoHistory
Ring-buffer undo/redo stack (max 200 entries).

Enums§

EditorAction
Action the shortcut should trigger.
EditorMode
The current operational mode of the editor.
EditorTheme
Visual colour scheme for the editor UI.
PanelId

Traits§

EditorCommand
Trait that every undoable editor command must implement.