This script provides a facility to update the localized text of all localized Text elements. More...
Public Member Functions | |
void | UpdateTexts (string languageCode) |
Updates the current language and all localized Texts. More... | |
Public Attributes | |
string | languagePlayerPrefsKey = "Language" |
The PlayerPrefs key to store the player's selected language code. More... | |
This script provides a facility to update the localized text of all localized Text elements.
You will typically call it from the event handler of a language selection button or pop-up menu. It also localizes Texts at start.
void PixelCrushers.DialogueSystem.UpdateLocalizedUITexts.UpdateTexts | ( | string | languageCode | ) |
Updates the current language and all localized Texts.
languageCode | Language code. |
string PixelCrushers.DialogueSystem.UpdateLocalizedUITexts.languagePlayerPrefsKey = "Language" |
The PlayerPrefs key to store the player's selected language code.