Fix awkward mouse conflict issues between egui and the engine

This commit is contained in:
reo 2025-12-13 18:23:52 +03:00
parent f5a16213fa
commit 8041c7e01d
6 changed files with 53 additions and 4 deletions

View file

@ -106,6 +106,11 @@ impl System for MainSystem {
character_pos = tr.translation;
}
egui_queue.queue(move |egui_ctx| {
// disable text selection on all labels.
egui_ctx.style_mut(|style| {
style.interaction.selectable_labels = false;
});
egui::Window::new("Debug").show(egui_ctx, |ui| {
ui.label("Hello World!");
ui.label(format!("Frame Delta: {:.3}", time_ctx.frame_dt));