Added despawn descendants after scene is done
This commit is contained in:
parent
8c12ba5ad3
commit
a4bb56355e
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -608,7 +608,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bevy_icon_creator"
|
name = "bevy_icon_creator"
|
||||||
version = "0.1.5"
|
version = "0.1.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bevy",
|
"bevy",
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "bevy_icon_creator"
|
name = "bevy_icon_creator"
|
||||||
version = "0.1.5"
|
version = "0.1.6"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Franklin E. Blanco"]
|
authors = ["Franklin E. Blanco"]
|
||||||
description = "A plugin to automatically create Icons from entities/models in bevy"
|
description = "A plugin to automatically create Icons from entities/models in bevy"
|
||||||
|
@ -42,6 +42,7 @@ pub fn update_icon_creator_scenes(
|
|||||||
scene_camera.is_active = false;
|
scene_camera.is_active = false;
|
||||||
*scene_root_visibility = Visibility::Hidden;
|
*scene_root_visibility = Visibility::Hidden;
|
||||||
scene_camera.target = RenderTarget::default();
|
scene_camera.target = RenderTarget::default();
|
||||||
|
entity_commands.despawn_descendants();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user