During the development of our game we’ve had some serious issues with positioning GUI elements correctly on different screen sizes/devices. For some time, I thought I had it figured out but now I’ve come to realize that SOME things work while others don’t, and I don’t understand why.
This GUI element, a branch, does not want to compute. It is placed outside of the actual Display Size to give some room for error, anchors are set to TOP and LEFT, adjust mode is set to Fit.
But it shows up like this:
The red Exit button on the top right, however, is placed perfectly where it should be. It looks like this in the editor, anchored to TOP-RIGHT, adjust mode on FIT:
I’ve checked the positions on both these elements on all fo our Display Profiles a thousand times and they are set correctly. I’ve tried looking through the Defold Documentations for answers but found nothing. Why don’t these two work the same? One stays on its position relative to the screen size while the other doesn’t.
What have I missed? Do parent elements have anything to do with this? I’m also wondering what the Adjust Mode of the whole GUI does (“Root” or “Per Node”), changing it does nothing.
Any answer at all is greatly appreciated!