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.
This commit is contained in:
2025-07-27 10:41:00 -05:00
parent c11322969c
commit 477460ad2f

View File

@@ -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,