/// 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)
| 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 | // /// |