更新转义字符bug
This commit is contained in:
parent
706987307c
commit
12b5a67e6d
@ -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>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user