pub trait Plugin: Any + Send + Sync {
fn build(&self, app: &mut App);
fn name(&self) -> &str { ... }
}
Expand description
A collection of Bevy App logic and configuration
Plugins configure an App
. When an App
registers
a plugin, the plugin’s Plugin::build
function is run.