Expand description
A simple editor plugin on top of wde_egui that provides an editor interface.
§Example
To create as an example a top-level menu item “Terrain” with a submenu “Paint”, you can do the following:
fn update(ctx: Res<UIContext>, mut ui_menu: ResMut<UIMenu>) {
UIWindow::new("Paint Debug")
.open(ui_menu.clicked_mut("Terrain/Paint"))
.show(&ctx.0, |_ui| {
// Terrain paint functionality goes here...
});
}Menus are grouped by topic: Engine (core tools), Render, Camera, Terrain, and Game for the project’s
own windows (see UIMenu).
To see all the available UI components and how to use them, check out the [egui] documentation, which is the underlying UI library used by wde_egui and thus also by this editor plugin.
§Default Panels
This crate also provides basic panels such as ones for inspecting entities and assets, and the editor’s theme, installed on the egui context.
Modules§
- theme
- The editor’s egui theme: a flat dark palette with a single accent color, the Inter font and compact spacing so debug windows leave most of the screen to the game.