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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user