Bevy plugins:
- All bevy Features can be considered as plugins.
- Plugin is collection of code used to modify the App.
- You can disable a Feature if you don’t want it in app.
- You can also build your own plugin. If it doesnt contribute to Bevy, it is called 3rd-party plugin. To use other’s 3rd-party plugin have to do:
- Search plugins on Bevy Assets.
- Add it under the
[dependencies]
in Cargo.toml
file.
- Import to
main.rs
by use third-party::prelude:*;
.
- Add the plugin to the app
.add_plugins(third-party-plugin)
.
- In case you want to use Bevy Plugins. Bevy has a set of plugins called DefaultPlugins.