Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

Did anyone experience the problem when trying to expand the parent node (ex: textureRect, colorRect,...) the text inside got stretch out as well? How did you fix that?

asked in CSC380Jan2024 by (1 point)

4 Answers

+5 votes

I think it depends on what the child node is. For example if the child node is a texture rect you can turn on keep aspect in the settings and I think that would fix it. What is your child node?

answered by (1 point)
+1

my child node is a label

+4 votes

Any size adjustment you make to a parent node will affect all of its children. If you don't want any of the children nodes to be resized then you'll have to put them under a different parent.

answered by (1 point)
+4 votes

Honestly I think the best way to do this is to increase the size of the parent node in a scene. If your node tree is not its own scene then its probably best to make it its own scene so you can more easily adjust stuff in there

answered by (1 point)
+1

i will try that. thank you!

+1

your welcome

+3 votes

I have been using a MarginContainer node to avoid that

answered by (1 point)
...