It also depends on your camera projection type.
For default projection, you can get adjust_zoom_scale
like this
local display_size = vmath.vector3(640, 1136, 0)
local width, height = window.get_size()
local window_size = vmath.vector3(width, height, 0)
local scale_x = window_size.x / display_size.x
local scale_y = window_size.y / display_size.y
local actual_display_height = scale_x > scale_y and display_size.y or window_size.y / scale_x
local adjust_zoom_scale = actual_display_height / display_size.y
I’m just wondering why you choose to use gui.ADJUST_ZOOM for all your nodes? When you change your node size, it means that you can not use size mode Auto
, a useful mode for your node texture