jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.18k stars 173 forks source link

Cannot add plugins in Bevy 0.12 #158

Closed muhuk closed 11 months ago

muhuk commented 11 months ago

Using:

bevy = { version = "0.12.0", features = ["dynamic_linking"] }
bevy-inspector-egui = "0.20.0"

...this code:

    app.add_plugins(WorldInspectorPlugin::new());

...produces this error:

error[E0277]: the trait bound `WorldInspectorPlugin: bevy_app::plugin::sealed::Plugins<_>` is not satisfied
   --> src/main.rs:29:21
    |
29  |     app.add_plugins(WorldInspectorPlugin::new());
    |         ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `bevy_app::plugin::sealed::Plugins<_>` is not implemented for `WorldInspectorPlugin`
    |         |
    |         required by a bound introduced by this call

Same for StateInspectorPlugin.

jakobhellermann commented 11 months ago

bevy-inspector-egui is not updated to 0.12 yet, I will release once https://github.com/mvlabat/bevy_egui/pull/221 lands

ConnorBP commented 11 months ago

bevy-inspector-egui is not updated to 0.12 yet, I will release once mvlabat/bevy_egui#221 lands

What about https://github.com/jakobhellermann/bevy-inspector-egui/pull/157

SIGSTACKFAULT commented 11 months ago

now we're waiting for the update to ship on crates.io

jakobhellermann commented 11 months ago

0.21 is released now :tada: