Color Rect + Label ?= Auto Resize

Godot Version

v4.4.1.stable.mono.official [49a5bc7b6]

Question

Hi, I have a ColorRect node with a Label as its child. How can I make the ColorRect automatically resize to fit the text inside the Label? Thanks.
image

You’ll need to use containers, like a PanelContainer for example, to do that.

This does indeed work, thanks!
image

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.