From 8c0a1944683bd35bfea0257322223765b6a54714 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 6 Apr 2024 00:09:58 +0300 Subject: [PATCH] Update camera when the viewport size changes --- src/UI/Canvas/CanvasCamera.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/Canvas/CanvasCamera.gd b/src/UI/Canvas/CanvasCamera.gd index a51ca883f..651bb7a80 100644 --- a/src/UI/Canvas/CanvasCamera.gd +++ b/src/UI/Canvas/CanvasCamera.gd @@ -43,6 +43,7 @@ var should_tween := true func _ready() -> void: + viewport.size_changed.connect(_update_viewport_transform) Global.project_switched.connect(_project_switched) if not DisplayServer.is_touchscreen_available(): set_process_input(false)