bevyengine / bevy

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

Fix bevy plugin dependency crashes #12782

Open s-puig opened 8 months ago

s-puig commented 8 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 8 months ago

Related to the ideas in #1255.