Hello,
We are working on simple dialogue system with editor support. We’re using following code to create entries in UnityEditor programmatically:
LocalizationSettings.StringDatabase.GetTable(ourTable).AddEntry(newKey, "");
var prop = so.FindProperty("Text");
prop.FindPropertyRelative("m_TableReference").FindPropertyRelative("m_TableCollectionName").stringValue = ourTable;
prop.FindPropertyRelative("m_TableEntryReference").FindPropertyRelative("m_Key").stringValue = newKey;
And to edit them:
if (newText != text)
{
LocalizationSettings.StringDatabase.GetTable(_node.Text.TableReference).GetEntryFromReference(_node.Text.TableEntryReference).Value = newText;
}
And this works correctly while editor is open. Closing the Unity Editor and re-oppening it discards all changes made by above code.
I am almost sure that I miss a step to save our changes to addressables - but poking around docs, I could not find the relevent command.
Can you point me in the right direction?
