From 477460ad2f04824dd77ead403fff46be952339c3 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 27 Jul 2025 10:41:00 -0500 Subject: [PATCH] Fix: Mark the main-menu camera so it despawns The camera spawned for the main menu wasn't given the TitleUI marker component, so it wouldn't despawn when changing to the game scene. --- src/title_screen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/title_screen.rs b/src/title_screen.rs index 58bad35..dc179a2 100644 --- a/src/title_screen.rs +++ b/src/title_screen.rs @@ -18,7 +18,7 @@ impl Plugin for GameMenuPlugin { struct TitleUI; fn spawn_menu(mut commands: Commands) { - commands.spawn(Camera2d); + commands.spawn((TitleUI, Camera2d)); commands .spawn(( TitleUI,