diff --git a/Runtime/UXComponent/UX.meta b/Runtime/UXComponent/Drag.meta similarity index 100% rename from Runtime/UXComponent/UX.meta rename to Runtime/UXComponent/Drag.meta diff --git a/Runtime/UXComponent/UX/UXDraggable.cs b/Runtime/UXComponent/Drag/UXDraggable.cs similarity index 100% rename from Runtime/UXComponent/UX/UXDraggable.cs rename to Runtime/UXComponent/Drag/UXDraggable.cs diff --git a/Runtime/UXComponent/UX/UXDraggable.cs.meta b/Runtime/UXComponent/Drag/UXDraggable.cs.meta similarity index 100% rename from Runtime/UXComponent/UX/UXDraggable.cs.meta rename to Runtime/UXComponent/Drag/UXDraggable.cs.meta diff --git a/Runtime/UXComponent/Text/LocalizationRefreshHelper.cs b/Runtime/UXComponent/Text/LocalizationRefreshHelper.cs index 7ae6765..d3467ee 100644 --- a/Runtime/UXComponent/Text/LocalizationRefreshHelper.cs +++ b/Runtime/UXComponent/Text/LocalizationRefreshHelper.cs @@ -19,7 +19,7 @@ namespace UnityEngine.UI return previewLabelDic[key]; } - return string.Empty; + return key; } static void Init() diff --git a/Runtime/UXComponent/Text/UXTextMeshPro.cs b/Runtime/UXComponent/Text/UXTextMeshPro.cs index b31361e..188c5f9 100644 --- a/Runtime/UXComponent/Text/UXTextMeshPro.cs +++ b/Runtime/UXComponent/Text/UXTextMeshPro.cs @@ -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()