Fix awkward mouse conflict issues between egui and the engine
This commit is contained in:
parent
f5a16213fa
commit
8041c7e01d
6 changed files with 53 additions and 4 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue