Way to tween the automatic size property?

So let me elaborate because I know the title doesn’t do it justice.

I’m trying to create a Popup system for a game of mine that periodically displays helpful tips, the style looks like this:

image

The automatic size is perfect to use for this, because each tip has varying amount of text and I won’t have to worry about sizing each square to fit perfectly. However the adjustment is too quick and there’s no transition period, is there a way I can tween this? Or is there a property I can use that allows me to tween the textbox size until it fits the text perfectly?

5 Likes

I’m pretty sure that you can’t tween the automatic size, and I think the only way to tween the textbox size is if you know the prefect size beforehand. But some workarounds could be making the text slide in from the side or, make the text a typing animation.

3 Likes

That’s what I was thinking too, but upon trying this Automatic Size doesn’t update itself to the new text.

1 Like

Simple. Don’t use it, use TextBounds instead.

1 Like

Is this just a readable version of the UDim2 Size?

EDIT: IF so, how would I convert it to scale instead of offset

No, it’s a Vector2. Why would it be a UDim2?

You set the size to {0, TextBounds.X}, {0, TextBounds.Y}

Because UDim2 is the sizing for GUIs…

Yes, so you size it to the TextBounds in offset in UDim2.

Yes but 342 in Offset is not the same as 342 in scale. They’re two very different values.

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