Hi everybody, maybe a simple question, but i find Godot 4 UI element quite complex...

For a comic book like project, i'm trying to create a balloon that auto resizes according to the contained text, at this moment my hierarchy looks like this:

I'm using a Nine Patch, but i stop there, any advice on the matter much appreciated...

    Searching searching searching I found an interesting solution using PanelContainer instead of NinePatch:

    the second (simpler) solution.

    Now I don't understand the meaning of NinePatch Node, since PanelContainer does the same trick...

      papalagi I was about to comment, why nine patch, i never used it and started with containers and they pretty much can do most of the things you want.

      papalagi nine-patch is useless and a noob trap.
      use a THEME, create a theme variation for each of the different things you need, and in stylebox add a styleboxtexture, there you can set the texture as a 9-patch.
      THAT is the way it's done in godot.

      look up a tutorial on the theme system, it's a lot for me to explain in a single post.