Resizing a panel to act as background of a size changing text
Asked Answered
C

1

0

Hi, I'm making a subtitles handler. The problem is that I don t know how to resize the background to be the same size as the lines of text the label has when that text changes in-game.
I have tried resizing it by code but I feel there MUST be an easier way to do this.
Any ideas?

Big text

Small text (I want to resize so it ends up the size of the text)

Cartwell answered 8/11, 2023 at 10:28 Comment(0)
B
1

Cartwell Put your Label inside a PanelContainer.

Booker answered 8/11, 2023 at 10:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.