Trait bevy::app::prelude::PluginGroup
pub trait PluginGroup: Sized {
fn build(self) -> PluginGroupBuilder;
fn name() -> String { ... }
fn set<T>(self, plugin: T) -> PluginGroupBuilder
where
T: Plugin,
{ ... }
}
Expand description
Combines multiple Plugin
s into a single unit.
Required Methods§
fn build(self) -> PluginGroupBuilder
fn build(self) -> PluginGroupBuilder
Configures the Plugin
s that are to be added.
Provided Methods§
fn name() -> String
fn name() -> String
Configures a name for the PluginGroup
which is primarily used for debugging.
fn set<T>(self, plugin: T) -> PluginGroupBuilderwhere
T: Plugin,
fn set<T>(self, plugin: T) -> PluginGroupBuilderwhere
T: Plugin,
Sets the value of the given Plugin
, if it exists