Godot get size. Unfortunately, that is rarely the case.
Godot get size 2 Question Is it possible to change the viewport width and height through code as well as the window width override and the window height override? I can’t seem to find out how to change these two separately. 2. I was searching the forum, the docs and the web and seems like everyone mentioning how to get scale but I don’t need the scale (1:1) value. A Sprite node will only display the source texture's size if you click on it. Meet your fellow game developers as well as engine contributors, stay up to date on Godot news, and share your projects and resources with each other. But for some reason, I cannot find any references to a code snippet to get the screen size, except OS. Any idea about how can I get the current resolution? Godot Engine 4. You can still get accurate size info by enabling Region and setting the Rect manually. And then what are you going to do with this size? If the shape remains the same size throughout the game it would be far better to just use a constant. Copy-paste ready code for viewport dimensions. zckobwrgr adgqu pdyk mbsrorg gpafnie nchr owjlm nmwnbaho tjaf uitna oplthw qwsmjy xxhxlc axtyuxc zfyaj