diff --git a/Editor/UX/UXTextMeshProEditor.cs b/Editor/UX/UXTextMeshProEditor.cs index 5039b88..5f8b0e7 100644 --- a/Editor/UX/UXTextMeshProEditor.cs +++ b/Editor/UX/UXTextMeshProEditor.cs @@ -113,6 +113,15 @@ namespace UnityEngine.UI } } + protected void RefreshKeyValue() + { + if (allTableNames.TryGetValue(localizationID.intValue, out TableSelectionData data)) + { + m_localizationKey.stringValue = data.CombineValue; + serializedObject.ApplyModifiedProperties(); + } + } + protected override void OnEnable() { localizationID = serializedObject.FindProperty("m_localizationID"); @@ -120,7 +129,7 @@ namespace UnityEngine.UI RefreshAllTables(); FindSelectSelection(); - + RefreshKeyValue(); base.OnEnable(); }