despawn AR overlay entities on death

This commit is contained in:
yuni 2024-04-11 20:06:00 +02:00
parent 0d312edeee
commit 2b74b50563

View file

@ -732,6 +732,7 @@ fn spawn_entities(
hud::AugmentedRealityOverlay {
owner: actor_entity,
},
world::DespawnOnPlayerDeath,
SceneBundle {
scene: asset_server.load(world::asset_name_to_path(ar_asset_name)),
visibility: Visibility::Hidden,