NGUIText类中的静态方法
public UILabel textLabel;
private string text2;
// Update is called once per frame
void Update ()
{
if (this.textLabel != null && this.textLabel.font != null)
{
NGUIText.WrapText( textLabel.text, out text2 );
string[] lines = text2.Split('\n');
Debug.Log( "lines = " + lines.Length );
}
}