mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
Fix scaling not working after resizing the window (#699)
This commit is contained in:
@@ -16,7 +16,7 @@ func _ready():
|
|||||||
|
|
||||||
# Required to change the 3D viewport's size when the window is resized.
|
# Required to change the 3D viewport's size when the window is resized.
|
||||||
# warning-ignore:return_value_discarded
|
# 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):
|
func _unhandled_input(event):
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ config/features=PackedStringArray("4.0")
|
|||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/stretch/mode="2d"
|
window/stretch/mode="canvas_items"
|
||||||
window/stretch/aspect="expand"
|
window/stretch/aspect="expand"
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|||||||
Reference in New Issue
Block a user