icysamon blog

Godot・ゲーム解像度を得る

,
# 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))

検索

icysamon

mail@icysamon.com