From 71a8b9ce3030a5d920ba4c896e5c0fc7cc295a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Wed, 15 Oct 2025 13:05:27 +0800 Subject: [PATCH] fix --- Editor/UX/UXTextMeshProEditor.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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(); }