I'm currently working on a project, which requires me to have a label, Originally said label was a child of a VBoxContainer, and said VBox was inside of a Node2D.

Only problem is that VBoxes dont work very well under Node2D's which can probably be expected, I could use a CanvasLayer, except they follow the viewport, and what I need is for the label to be under a 2d node, so that wont do. And from my research there isnt much of a way to override this.

A thing I thought of was containing a label inside of a CanvasLayer and somehow positioning it to a set position, although I have no idea where to begin If I chose to do that.

So is there a work around for this?

  • xyz replied to this.

    Frodev I need is for the label to be under a 2d node

    Why?

      xyz
      You could think of it like a sign with text.
      If you need more details feel free to ask!

      • xyz replied to this.

        Frodev What's wrong with just parenting the label directly to a Node2D?

          13 days later

          xyz
          Well it does work in general, not sure if I mentioned this, but I would like to put the label into a VboxContainer, and said VBox would be a child of the Node2D.

          Problem with this is how odd VBoxes act inside of a Node2D, and its not ideal.

          Maybe you could script the labels to behave like a vbox container.