Trait bevy_app::Plugin[][src]

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. Primarily for debugging.

Implementors