for some reason i need to run a system once at the beginning of the runtime i would like to keep things simple (with app and shedule)
// in Setup shedule
let id :SystemId = commands.register_system(one_shot_system);
// this should be run in Update shedule
if let Some(id) = ???
commands.run_system(id);
commands.unregister_system(id);
}
how to store the SystemId in Resource (initialization is an issue) or (other technic) in order to run & unregister that system at a chosen time ?
official example are sneaky using a Callback(SystemId) but i don't have it in my scope for compillation maybe a feature is missing...
https://github.com/bevyengine/bevy/blob/main/examples/ecs/one_shot_systems.rs