4.5.1
I’m trying to adjust a game if the user changes the window size. So I’m trying to calculate the ratio between the current viewport width and the layout viewport width as set in the project settings. How do I get the latter?
You should be able to use ProjectSettings.get_setting("display/window/size/viewport_width")
ProjectSettings.get_setting("display/window/size/viewport_width")
ProjectSettings.get_setting(“display/window/size/viewport_width”)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.