# Objective Since #15641, `loading_screen` panics. ``` called `Result::unwrap()` on an `Err` value: MultipleEntities("bevy_ecs::query::state::QueryState<&mut bevy_render::view::visibility::Visibility, bevy_ecs::query::filter::With<loading_screen::LoadingScreen>>") ``` Before that PR, the camera did not have a `Visibility` component. But `Visibility` is now a required component of `Camera`. So the query matches multiple entities. ## Solution Minimal change to make the example behave like it used to. Plus a tiny drive-by cleanup to remove a redundant unwrap. ## Testing `cargo run --example loading_screen` |
||
|---|---|---|
| .. | ||
| alien_cake_addict.rs | ||
| breakout.rs | ||
| contributors.rs | ||
| desk_toy.rs | ||
| game_menu.rs | ||
| loading_screen.rs | ||
| stepping.rs | ||