diff --git a/examples/window/expanding_window.rs b/examples/window/expanding_window.rs index c7db4e4c86e221..968039c3480d0e 100644 --- a/examples/window/expanding_window.rs +++ b/examples/window/expanding_window.rs @@ -14,9 +14,14 @@ fn main() { .add_plugins(DefaultPlugins) .insert_resource(Phase::ContractingY) .add_system(change_window_size) + .add_startup_system(setup) .run(); } +fn setup(mut commands: Commands) { + commands.spawn_bundle(OrthographicCameraBundle::new_3d()); +} + enum Phase { ContractingY, ContractingX,