GUI and multiple resolutions

I was looking into Defold GUI subsystem and the way it handles multiple resolutions. As I understand GUI nodes are rectangle based and all stretch modes (stretch, zoom, fit) change its size as window size changes.

However, I’m interested in GUI elements that don’t change size in pixels, instead they attach to locations on screen defined relatively (top left corner) or in terms of other elements (left of some other button).

If our GUI elements are non-scalable resources created by artists, i.e. we don’t want to get blur from stretching and we don’t want to use 9-patch - I don’t even see the way to set that up through GUI system. Am I missing anything? What are the ways people are handling GUIs in one-screen (e.g. puzzles) production games?

Thanks in advance for any help or comments!

If you don’t want GUI scaling you can disable it in the root of the GUI component. You will then need to do manual positioning based on relative window scale.

4 Likes