new: project bootstrap
This commit is contained in:
commit
5ea7f6de91
4 changed files with 4784 additions and 0 deletions
16
src/main.rs
Normal file
16
src/main.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
use bevy::prelude::*;
|
||||
use bevy_egui::{egui, EguiContexts, EguiPlugin};
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_plugins(EguiPlugin)
|
||||
.add_systems(Update, ui_example_system)
|
||||
.run();
|
||||
}
|
||||
|
||||
fn ui_example_system(mut contexts: EguiContexts) {
|
||||
egui::Window::new("Hello").show(contexts.ctx_mut(), |ui| {
|
||||
ui.label("world");
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue