From 4852233298a6ad4c0ff02fef448aa3923ebe1e4d Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Tue, 19 Dec 2023 18:01:53 +0000 Subject: [PATCH] OrthographicProjection.scaling_mode is not just for resize (#11024) Current comment is somewhat misleading: one may assume the field is used only when window is resized. --- crates/bevy_render/src/camera/projection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/camera/projection.rs b/crates/bevy_render/src/camera/projection.rs index 25b495b4f1..637ca423cf 100644 --- a/crates/bevy_render/src/camera/projection.rs +++ b/crates/bevy_render/src/camera/projection.rs @@ -251,7 +251,7 @@ pub struct OrthographicProjection { /// Defaults to `(0.5, 0.5)`, which makes scaling affect opposite sides equally, keeping the center /// point of the viewport centered. pub viewport_origin: Vec2, - /// How the projection will scale when the viewport is resized. + /// How the projection will scale to the viewport. /// /// Defaults to `ScalingMode::WindowSize(1.0)` pub scaling_mode: ScalingMode,