+1 vote

I'm wondering how to resize the children of a GridContainer. In my case, the children are TextureRects. For making the TextureRect children smaller, setting the scale, size, or min_size of the rect does not work.

in Engine by (28 points)
edited by

1 Answer

–2 votes

You can resize children by setting min size in rect option

by (736 points)

That doesn't seem to work if I want to make the children smaller, and if I want to make it bigger it changes the size of the rect, but not the texture inside the rect

toggle expand option in TextureRect

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 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 webmaster@godotengine.org with your username.