//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刪除。