+1 vote

In TextureRect class there is an ExpandMode option that you can set to 'Keep Size', 'Fit Width' and many more.

I am trying to replicate the same menu I did but with TextureProgressBar but I can't find a way to scale these nodes.

Of course I can't scale the nodes with the scale propery because they are in a GridContainer that overrides the values.

Am I missing something? How can I do this?

Thanks!

Godot version 4.0beta15
in Engine by (13 points)

1 Answer

0 votes

I don't know much about Control Nodes, but I think you could use an AspectRatio container for it. AspectRatioContainer has stretch_mode.

by (195 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.