修改UXTextMeshPro
This commit is contained in:
parent
5084130abe
commit
777cc90eaa
@ -19,7 +19,7 @@ namespace UnityEngine.UI
|
||||
return previewLabelDic[key];
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
return key;
|
||||
}
|
||||
|
||||
static void Init()
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
#if TEXTMESHPRO_SUPPORT
|
||||
|
||||
using TMPro;
|
||||
|
||||
namespace UnityEngine.UI
|
||||
@ -13,7 +12,7 @@ namespace UnityEngine.UI
|
||||
protected override void OnValidate()
|
||||
{
|
||||
base.OnValidate();
|
||||
if (Application.isEditor) text = LocalizationRefreshHelper.GetPreviewLabel(m_localizationKey);
|
||||
if (!Application.isPlaying) text = LocalizationRefreshHelper.GetPreviewLabel(m_localizationKey);
|
||||
}
|
||||
#endif
|
||||
protected override void Start()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user