mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 06:00:20 +00:00
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.
This commit is contained in:
parent
7d2e6cb468
commit
4852233298
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue