- Home /
How to find the number of lines a string will take up in a text area?
GUI.TextArea(Rect(areaX, areaY, areaWidth, areaHeight, messageString);
I add a string to a text area using this function. It automatically word wraps the string if it is too long. How can I figure out how many lines a string takes up in the text area?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613153035im_/https://answers.unity.com/themes/thub/images/avi.jpg)