pub fn warn<E: Debug>(In: In<Result<(), E>>)
👎Deprecated: use
.map(bevy_utils::warn)
insteadExpand 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_systems(
// 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())
}