Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Auto Resize "Text" Rect

$
0
0
Hi,
I am creating a scrollable text area which will be used for chatting. So far it works fine as long as I give a long height for the text box. However since this is used for chatting a fixed height is not a good idea. the height of the "Text" needs to be set dynamically. But I could not find a way to do this. Anyone know how to resize a text field based on it's text, so the full text scrolls inside the scrollrect?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>