I am new to the only newest interface. What I know about the text element of the user interface, we can wrap the text in horizontal borders, but if it comes to the next line, then it overflows or is cut off. If it matches the height, the font size is reduced. I want to adjust the height of the text area in accordance with the contents contained in it, without affecting the font size inside.
I will have many text elements as children of the parent panel, the panel itself will be a child in a scrollable container. Therefore, I need to calculate the height of all children in order to adjust the height of the parent panel.
How do I achieve this?
c # text unity3d
mdanishs
source share