Crate wde_editor

Crate wde_editor 

Source
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>, ui_menu: Res<UIMenu>) {
    UIWindow::new("Paint Debug")
        .default_size([1100.0, 600.0])
        .open(ui_menu.clicked_mut("Terrain/Paint"))
        .show(&ctx.0, |_ui| {
             // Terrain paint functionality goes here...
        });
}

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, as well as a simple overlay system for drawing UI on top of the game viewport.

Structs§

EditorPlugin