//1.解决方案如下 m_introduceContent.text = System.Text.RegularExpressions.Regex.Unescape(content);
//2.替换文本 动态赋值会把文本中的\n变成\\n 所以替换就可以了
m_introduceContent.text = content;
m_introduceContent.text = m_introduceContent.text.Replace("\\n", "\n");
//1.解决方案如下 m_introduceContent.text = System.Text.RegularExpressions.Regex.Unescape(content);
//2.替换文本 动态赋值会把文本中的\n变成\\n 所以替换就可以了
m_introduceContent.text = content;
m_introduceContent.text = m_introduceContent.text.Replace("\\n", "\n");
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。