bevy_egui 0.6.1

A plugin for Egui integration into Bevy

bevy_egui Documentation License Downloads Rust

This crate provides a Egui integration for the Bevy game engine.

Trying out:

An example WASM project is live at [source].


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.



Here's a minimal usage example:

# Cargo.toml
bevy = "0.5"
bevy_egui = "0.6"
use bevy::prelude::*;
use bevy_egui::{egui, EguiContext, EguiPlugin};

fn main() {

// 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.
fn ui_example(egui_context: ResMut<EguiContext>) {
    egui::Window::new("Hello").show(egui_context.ctx(), |ui| {

For a more advanced example, see examples/

cargo run --example ui

See also

Bevy support table

bevy bevy_egui
0.5 0.4-0.6
0.4 0.1-0.3