When I use localizedString.GetLocalizedString, it throws me error.
The local variables I set in the editor, should work right away? Or I still need to pass it to the method?
When you call StringTable.GetLocalizedString directly you miss out the part where the local variables are passed in.
We pass them in by assigning them to the FormatCache before we call GetLocalizedString.
You should do: localizedString.GetLocalizedString() instead.
I am using this code in Editor script OnInspectorGUI function. My code localizedString.GetLocalizedString() returns null, while they are working in the property drawer.
localizedString.LocaleOverride = LocalizationEditorSettings.GetLocales()[0];
I’m using this for a specific LocalizedString in the Editor code, but I didnt find a way to set a global locale default.
Hope this can help someone who comes in the future,