Function bevy::prelude::system_adapter::warn
pub fn warn<E>(_: In<Result<(), E>>)where
E: Debug,
Expand description
System adapter that utilizes the bevy_utils::tracing::warn!
macro to print the output of a system.
Examples
use bevy_ecs::prelude::*;
// Building a new schedule/app...
sched.add_system(
// Prints system warning if system returns an error.
warning_pipe_system.pipe(system_adapter::warn)
)
// ...
// A system that returns a Result<(), String> output.
fn warning_pipe_system() -> Result<(), String> {
Err("Got to rusty?".to_string())
}