This crate provides a Egui integration for the Bevy game engine.
An example WASM project is live at mvlabat.github.io/bevy_egui_web_showcase [source].
- Desktop and web (bevy_webgl2) platforms support
- Clipboard (web support is limited to the same window, see rust-windowing/winit#1829)
- Opening URLs
- Multiple windows support (see ./examples/two_windows.rs)
bevy_egui can be compiled with using only
egui as dependencies:
that require additional crates, can be disabled.
Here's a minimal usage example:
# Cargo.toml  = "0.5" = "0.6"
use *; use ; // Note the usage of `ResMut`. Even though `ctx` method doesn't require // mutability, accessing the context from different threads will result // into panic if you don't enable `egui/multi_threaded` feature.
For a more advanced example, see examples/ui.rs.
Bevy support table