pub fn dbg<T>(_: In<T>)where
T: Debug,
Expand description
System adapter that utilizes the bevy_utils::tracing::debug!
macro to print the output of a system.
Examples
use bevy_ecs::prelude::*;
// Building a new schedule/app...
let mut sched = Schedule::default();
sched.add_system(
// Prints debug data from system.
parse_message_system.pipe(system_adapter::dbg)
)
// ...
// A system that returns a Result<usize, String> output.
fn parse_message_system() -> Result<usize, std::num::ParseIntError> {
Ok("42".parse()?)
}