Skip to content

Instantly share code, notes, and snippets.

@adamscott
Created February 17, 2026 13:52
Show Gist options
  • Select an option

  • Save adamscott/33d36c38a10787b6b4accf52ac80aed5 to your computer and use it in GitHub Desktop.

Select an option

Save adamscott/33d36c38a10787b6b4accf52ac80aed5 to your computer and use it in GitHub Desktop.
Scale Godot content for HiDPI
func _ready() -> void:
get_tree().root.content_scale_factor = DisplayServer.screen_get_scale()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment