Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: LightStorm on April 23, 2014, 04:51:33 AM
-
Could you please add number of printed lines to UILabel component? Sometimes it's very useful to see how many lines of text was used.
-
label.text.Split('\n').Length;
-
Yes, but I need number of printed lines when I use fixed width for label and text was wrapped.
How can I do that?
-
label.processedText.Split('\n').Length;
-
Thanks.
BTW: It's works but this solution is time consuming especially with big amount of text.