bevy_egui
This crate provides a Egui integration for the Bevy game engine.
Features:
- Desktop and web (bevy_webgl2) platforms support
- Clipboard (web support is limited to the same window, see rust-windowing/winit#1829)
- Opening URLs
bevy_egui
can be compiled with using only bevy
and egui
as dependencies: manage_clipboard
and open_url
features,
that require additional crates, can be disabled.
Trying out
An example WASM project is live at mvlabat.github.io/bevy_egui_web_showcase [source].
Note that in order to use bevy_egui
in WASM you need bevy_webgl2 of at least 0.4.1
version.
Usage
Here's a minimal usage example:
# Cargo.toml
[]
= "0.4"
= "0.1"
use *;
use ;
For a more advanced example, see examples/ui.rs.