Is there a way to get a list of supported computer resolutions? Previously, I could get an array of supported resolutions in Unreal Engine. I don’t want to enter them manually.
Implosion I am not exactly sure that you can. Read the note box under Base Size:
https://docs.godotengine.org/en/latest/tutorials/rendering/multiple_resolutions.html
Nabonidus Yes, however since the root of the scenetree is a viewport it's resolution can be changed with little issue. At least in theory. It's probably safe to assume that the current resolution of the active/chosen monitor is it's maximum since most users likely set their resolution to the highest available and anything up to that resolution and of the same aspect ratio is likely doable.
Rather than just leaving this side-remark, so as to offer something actually useful to the OP, DisplayServer class might be useful: https://docs.godotengine.org/en/latest/classes/class_displayserver.html
Complacent Yes, as far as I understand it Godot will always use the current display resolution and it is up to you to choose whatever resolution you want to use to render your game (for example 1080p or 320x200) and then the engine will just stretch and scale according to some criteria and display it in the window. Maybe upscaled, downscaled or not scaled at all.
© 2022 - 2024 — McMap. All rights reserved.