MCPcopy Create free account
hub / github.com/TanTanDev/runity / add_plugin

Method add_plugin

rust/shared/src/bevy_app_syncable.rs:702–709  ·  view source on GitHub ↗

/// Adds a single plugin /// /// One of Bevy's core principles is modularity. All Bevy engine features are implemented /// as plugins. This includes internal features like the renderer. /// /// Bevy also provides a few sets of default plugins. See [`add_plugins`](Self::add_plugins). /// /// ## Example /// ``` /// # use bevy_app::prelude::*; /// # /// App::new().add_plugin(bevy_log::LogPlugin::defa

(&mut self, plugin: T)

Source from the content-addressed store, hash-verified

700 // /// App::new().add_plugin(bevy_log::LogPlugin::default());
701 // /// ```
702 pub fn add_plugin<T>(&mut self, plugin: T) -> &mut Self
703 where
704 T: Plugin,
705 {
706 debug!("added plugin: {}", plugin.name());
707 plugin.build(self);
708 self
709 }
710
711 // /// Adds a group of plugins
712 // ///

Callers 1

initMethod · 0.80

Calls 1

buildMethod · 0.80

Tested by

no test coverage detected