logo
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.

Required Methods

Configures the App to which this plugin is added.

Provided Methods

Configures a name for the Plugin which is primarily used for debugging.

Implementors