This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I created a Vboxcontainer.
Put two texturerects in it, means one is on top of the other.
Then, I put a texture in the texturerect at the bottom.
Since the texturerect at the top is empty, it occupies no space (size 0x0).
However, for some reason, the texturerect at the bottom is pushed further down, and now has a margin_top of 4 that I cannot change.
Adding a texture to the texturerect at the top keeps that issue, so that I can never make the two textures touch if they are in the same Vboxcontainer.

Is there a way fo fix this? Being able to set a fixed min/max margin would be helpful.

Thanks!

in Engine by (31 points)

1 Answer

0 votes

.addconstantoverride("separation", 0) fixes this.

by (31 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.