Can I use LocalizeUI's 'Field Name' for localize & update?
Posted: Wed Aug 28, 2024 2:35 pm
Hi,
I was changing text like
titletext.text = DialogueManager.GetLocalizedText(_data.taskName);
But I figured out it doesn't change language when I use DialogueManager.SetLanguage("english");
So I had to use this method "titletext.text = DialogueManager.GetLocalizedText(_data.taskName);" again to refresh it.
So I used LocalizeUI like this
localizeUnitName.fieldName = _data.taskName;
localizeUnitName.UpdateText();
Now it works well when I change language.
But I wonder whether this way changing Field Name is good way to change language.
Thank you.
I was changing text like
titletext.text = DialogueManager.GetLocalizedText(_data.taskName);
But I figured out it doesn't change language when I use DialogueManager.SetLanguage("english");
So I had to use this method "titletext.text = DialogueManager.GetLocalizedText(_data.taskName);" again to refresh it.
So I used LocalizeUI like this
localizeUnitName.fieldName = _data.taskName;
localizeUnitName.UpdateText();
Now it works well when I change language.
But I wonder whether this way changing Field Name is good way to change language.
Thank you.