bevy_hotpatching_experiments 0.4.0

Hotpatch your Bevy systems, allowing you to change their code while the app is running and directly seeing the results!
Documentation
use bevy::prelude::*;
use bevy_hotpatching_experiments::prelude::*;
fn main() -> AppExit {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugins(SimpleSubsecondPlugin::default())
        .add_systems(Update, trigger_greeting)
        .add_observer(greet)
        .run()
}

#[hot]
fn trigger_greeting(mut commands: Commands) {
    commands.trigger(PrintGreeting);
}

#[hot]
fn greet(_trigger: On<PrintGreeting>) {
    info_once!(
        "Hello from a hotpatched observer! Try changing this string while the app is running!"
    );
}

#[derive(Event)]
struct PrintGreeting;