Implementing `Into<&Context> for &egui::context::Context` to avoid type mismatch
marlalain opened this issue · comments
I can't pass the necessary context due to a type mismatch when using a library like egui-notify. Having a way to change it would be beneficial. It would also help anyone porting an existing codebase to bevy and bevy_egui.
Hey! You can get &egui::context::Context
by calling this method: https://docs.rs/bevy_egui/latest/bevy_egui/struct.EguiContexts.html#method.ctx_mut
I'd like to keep it this way (without adding the Into
implementation) so that people are aware of the immutable and mutable methods distinctions, the window API, etc.
I tried using ctx_mut,
but the compiler tells me there's a mismatch between bevy_egui's Context and egusi's Context. am I doing something wrong? sorry if that's a newbie question, I never saw this before
Oh, make sure the egui
versions match. We haven't yet updated bevy_egui
to support Egui 0.25. I guess you should use egui-notify 0.11
.
That must be it. Thanks!