Fix scaling not working after resizing the window (#699)

This commit is contained in:
voylin
2022-03-30 09:28:58 +09:00
committed by GitHub
parent 2ff9d17f46
commit e6c19ff4a9
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ func _ready():
# Required to change the 3D viewport's size when the window is resized.
# warning-ignore:return_value_discarded
get_viewport().connect(&"size_changed", self._root_viewport_size_changed)
viewport.connect(&"size_changed", self._root_viewport_size_changed)
func _unhandled_input(event):

View File

@@ -22,7 +22,7 @@ config/features=PackedStringArray("4.0")
[display]
window/stretch/mode="2d"
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
[input]