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. | |
Public Attributes | |
string | languagePlayerPrefsKey = "Language" |
The PlayerPrefs key to store the player's selected language code. | |
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.
This is now primarily a utility wrapper for LocalizeUI and UILocalizationManager.
|
inline |
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.