GUI Box node in game doesn't look like in the editor (SOLVED)

Hey guys, I can’t seem to figure out why this is happening. It worked fine until I added guibg node. I had the same issue in the past, but I completely forgot how I solved it :sweat_smile: :sweat_smile:

I might be wrong but try to “group” your nodes. So your hp and mp under one node. Also check your Adjust Mode for each node.

Make sure you pivot points are correct because this could also effect the position.

1 Like

Thanks for the suggestion! I tried it, but sadly it didn’t work.
The issue is that only red and blue bar are having this issue, while the black outline is sized as intended.

What’s the adjust mode on the red and blue bar? I think this is a matter of having the wrong properties on the nodes when the screen is resized. https://www.defold.com/manuals/gui/#_pivot_anchors_and_adjust_mode

1 Like

I’ve found the reason for the issue. I’m scaling the health and mana bar inside of the script, and I forgot to update y value of the scale in the code to match the one inside of the editor.
Thanks for looking into this!