Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding EguiPlugin plugin before WorldInspectorPlugin::new() causes panic #175

Open
anton-carlsson opened this issue Dec 19, 2023 · 1 comment

Comments

@anton-carlsson
Copy link

Hello!

Rust/bevy newbie here.

Using the latest versions of rustc (1.74.1), bevy (0.12.1), bevy_egui (0.24) and bevy-inspector-egui (0.21) causes a panic with this code:

App::new()
  .add_plugins(DefaultPlugins)
  .add_plugins(EguiPlugin)
  .add_plugins(WorldInspectorPlugin::new())
  .run();

Code in WorldInspectorPlugin::new() is checking if EguiPlugin is already added, but fails, and causes this panic:

thread 'main' panicked at C:\Users\[name]\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bevy-inspector-egui-0.21.0\src\quick.rs:67:17:
Error adding plugin bevy_egui::EguiPlugin: : plugin was already added in application

My dependencies looks like this:

bevy = { version = "0.12.1", features = [] }
bevy_egui = { version = "0.24" }
bevy-inspector-egui = { version = "0.21" }

I'm still new to the rust eco-system and bevy so I can't wrap my head around this issue yet :)

FYI, I had a working project before this, using these dependencies:

bevy = { version = "0.11.3", features = [] }
bevy_egui = { version = "0.22" }
bevy-inspector-egui = { version = "0.20" }

Let me know if you need more information.

@ryanpeach
Copy link

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants