Is there a way to make TMPro text expand Rect height when more text is added?

Hello, I have a question.

I have TMPro text called ConsoleLogText. And I wanna attach it to the ScrollRect. But there is a problem → TMPro does not expand (or I am blind and can’t see this option) the Rect height to match the text height.

Do you know how can I do this?

I think if you set it to wrap and then add a ContentSizeFitter component it should do what you want.

Caveat: I’m not set up to verify this but it seems reasonable based on past experience.

1 Like

Pretty sure you just need the pivot at the top, not the center.

1 Like