private float GetTextWidth(UnityEngine.UI.Text textComp, string message) { if (this._text.get_supportRichText()) { message = Regex.Replace(message, HyphenationJpn.RITCH_TEXT_REPLACE, string.Empty); } textComp.set_text(message); return(textComp.get_preferredWidth()); }