Make a panel container with a text box scale to the text box until a certain size is reached?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pedestriantactics

I want a panel container to scale inward in order to contain text, but force the text to multiple lines when it reaches a certain width.

So for instance if the text says “Hello” I’d like the container to just contain it, but if it’s something like “Hello my name is Dan, I’m an okay guy” it would force it to multiple lines and the panel would be the maximum size it could be.

I have been pulling my hair out with combinations of panels, panel containers, HBoxContainers, hatchets, rocks through my computer screen, etc.