更新转义字符bug

This commit is contained in:
shenjianxing 2025-01-15 15:14:17 +08:00
parent 706987307c
commit 12b5a67e6d

View File

@ -4,6 +4,7 @@ using QFramework;
using TMPro;
using System;
using static OperationController;
using System.Text.RegularExpressions;
namespace QFramework.Example
{
@ -44,7 +45,8 @@ namespace QFramework.Example
obj = Wrong.gameObject;
}
obj.SetActive(true);
obj.transform.Find("Bg/Label").GetComponent<TextMeshProUGUI>().text = mData.label;
var text = obj.transform.Find("Bg/Label").GetComponent<TextMeshProUGUI>();
text.text = Regex.Unescape(mData.label);
if (mData.autoHideTime == -1)
{
Button btn = obj.GetComponent<Button>();