From 2b74b5056353dc5b2860a930603f84e841fa4f1d Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 11 Apr 2024 20:06:00 +0200 Subject: [PATCH] despawn AR overlay entities on death --- src/commands.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.rs b/src/commands.rs index f2634a8..b58ada4 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -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,