Files
godot/doc/classes
Hugo Locurcio 29795e4fad Use the canvas_items/expand stretch mode/aspect by default for new projects
This ensures 2D elements are always at a readable size regardless of window
size or screen resolution. In the era of hiDPI displays being common, this
is generally considered a better default for nearly all games
(as opposed to non-game applications).

The `expand` stretch aspect ensures there are no black bars when the window
aspect ratio differs from the base aspect ratio (16:9 by default),
which matches previous behavior under the `disabled` stretch mode.

Behavior for controls that are not anchored correctly is overall slightly
improved by these defaults: instead of floating somewhere in the middle of the
screen, the controls will be at their expected location when the window aspect
ratio is the same as the base aspect ratio. Regardless, both the previous and
new defaults require the use of anchors for UIs to scale correctly across
different aspect ratios.

Existing projects are not affected by this change, as this only affects
projects created after this commit is merged.
2026-04-21 16:52:08 +02:00
..
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-04-04 01:37:10 +02:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-10 13:51:05 -04:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-01-14 20:30:13 +01:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-04-04 01:37:10 +02:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-01-14 20:30:13 +01:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-01-14 20:30:13 +01:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-04-07 18:40:59 -05:00
2026-03-25 17:07:39 +03:00
2026-04-04 01:37:10 +02:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00