Skip to main content

Godot - Getting the Resolution

·21 words
icysamon
Author
icysamon
I really love making things by hand and turning my ideas into reality.
# Godot 4.1

var width = ProjectSettings.get_setting(
    "display/window/size/viewport_width")
var height = ProjectSettings.get_setting(
    "display/window/size/viewport_height")
print("width:" + str(width) + " height:" + str(height))