diff --git a/Assets/Scripts/UI/UITextTip.cs b/Assets/Scripts/UI/UITextTip.cs index f679bc37..b7738738 100644 --- a/Assets/Scripts/UI/UITextTip.cs +++ b/Assets/Scripts/UI/UITextTip.cs @@ -3,6 +3,7 @@ using UnityEngine.UI; using QFramework; using System.Collections.Generic; using TMPro; +using System.Text.RegularExpressions; namespace QFramework.Example { @@ -25,7 +26,7 @@ namespace QFramework.Example protected override void OnOpen(IUIData uiData = null) { mData = uiData as UITextTipData ?? new UITextTipData(); - Des.text = mData.text; + Des.text = Regex.Replace(mData.text, @"\\n", "\n"); BtnContent.RemoveAllChildren(); foreach (var item in mData.btns) {