use bevy::{prelude::*, render::camera::ScalingMode}; mod debug; use debug::DebugPlugin; fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugin(DebugPlugin) .add_startup_system(spawn_camera) .run(); } fn spawn_camera(mut commands: Commands) { let mut camera = OrthographicCameraBundle::new_2d(); camera.orthographic_projection.scaling_mode = ScalingMode::None; commands.spawn_bundle(camera); }