This commit is contained in:
陈思海 2025-10-15 13:05:27 +08:00
parent 289bfc6111
commit 71a8b9ce30

View File

@ -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();
}