//! This example illustrates how to react to component change. use bevy::prelude::*; use rand::Rng; fn main() { App::new() .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .add_systems( Update, (change_component, change_detection, tracker_monitoring), ) .run(); } #[derive(Component, PartialEq, Debug)] struct MyComponent(f32); fn setup(mut commands: Commands) { commands.spawn(MyComponent(0.)); commands.spawn(Transform::IDENTITY); } fn change_component(time: Res