-
I tried using this crate with |
Beta Was this translation helpful? Give feedback.
Answered by
Barugon
Jul 24, 2024
Replies: 1 comment
-
It works. [dependencies]
bevy = "0.14"
bevy_egui = "0.28"
egui_file = "0.18" use bevy::prelude::*;
use bevy_egui::{EguiContexts, EguiPlugin};
use egui_file::FileDialog;
fn main() {
let mut dialog = FileDialog::open_file(None);
dialog.open();
let ui_example_system = move |mut contexts: EguiContexts| {
dialog.show(contexts.ctx_mut());
};
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(EguiPlugin)
.add_systems(Update, ui_example_system)
.run();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Barugon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works.