From dd3956c2bc1e21d24d89ee26d1ba50734875283d Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Sat, 8 Jan 2022 23:24:56 +0000 Subject: [PATCH] Actually add a camera --- examples/window/expanding_window.rs | 5 +++++ 1 file changed, 5 insertions(+) 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,