bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
33.47k stars 3.26k forks source link

Fix bevy plugin dependency crashes #12782

Open s-puig opened 3 months ago

s-puig commented 3 months ago

What problem does this solve or what need does it fill?

You would expect that the following: app.add_plugins(DefaultPlugins.build().disable::<SpritePlugin>()) would disable 2D and every plugin feature that depends on it (gizmos, ui, etc..), but most Bevy plugins rely on feature flags instead. This makes disabling most plugins to crash the app.

What solution would you like?

What alternative(s) have you considered?

alice-i-cecile commented 3 months ago

Related to the ideas in #1255.