console_layer_factory

Function console_layer_factory 

Source
pub fn console_layer_factory(app: &mut App) -> Option<BoxedLayer>
Expand description

Factory function that creates and configures the console logging layer.

This function should be used with Bevy’s LogPlugin to capture log messages and display them in the Yoleck editor console.

§Example


fn main() {
    App::new()
        .add_plugins(DefaultPlugins.set(LogPlugin {
            custom_layer: console_layer_factory,
            ..default()
        }))
        .run();
}