I’m trying to dynamically resize a text mesh pro’s rect transform based on its text, the same way an html div works, and I can’t find a way to do it, and I’m starting to think there’s no way.
I’ve tried using an an input field instead of the regular text mes pro ugui component, but the onValueChanged event is fired only if the value changes from inside the game, which doesn’t help me.
I’m kind of surprised this isn’t a more widely requested feature, but oh well.
Is there any way to achieve this?
Thanks!