pub fn simple_teardown(mut commands: Commands, mut scene_root: ResMut<Entity>) {
    commands.entity(*scene_root).despawn_recursive();

    // Create a new, valid scene_root
    *scene_root = commands.spawn_bundle(()).id();
}
// Looks for an entity resource and then despawns that entity and all it's children
Looks for an entity resource and then despawns that entity and all it's children
Looks for an entity resource and then despawns that entity and all it ' s children
pub fn simple_teardown(mut commands: Commands, mut scene_root: ResMut<Entity>) {
    commands.entity(*scene_root).despawn_recursive();
    // Create a new, valid scene_root
    *scene_root = commands.spawn_bundle(()).id();
}
pub fn simple_teardown ( mut commands : Commands , mut scene_root : ResMut < Entity > ) { commands . entity ( * scene_root ) . despawn_recursive ( ) ; // Create a new, valid scene_root * scene_root = commands . spawn_bundle ( ( ) ) . id ( ) ; }
Looks for an entity resource and then despawns that entity and all it's children
Looks for an entity resource and then despawns that entity and all it ' s children
commands
Commands
scene_root
ResMut<Entity>