Manages localization settings. More...
Public Member Functions | |
void | Initialize () |
bool | HasLanguage (string language) |
Checks if text table(s) support the specified language. | |
bool | HasField (string fieldName) |
Checks if text table(s) have a specified field. | |
string | GetFieldTextForLanguage (string fieldName, string language) |
Returns the localized text for a field in a specified language. | |
string | GetLocalizedText (string fieldName) |
Returns the localized text for a field in the current language. | |
void | UpdateUIs (string language) |
Updates the current language and all localized UIs. | |
Properties | |
LocalizedFonts | localizedFonts [get, set] |
static UILocalizationManager | instance [get, set] |
Current global instance of UILocalizationManager. | |
TextTable | textTable [get, set] |
Overrides the global text table. | |
List< TextTable > | additionalTextTables [get, set] |
(Optional) Any additional text tables. | |
string | currentLanguage [get, set] |
Gets or sets the current language. | |
string | currentLanguagePlayerPrefsKey [get, set] |
The PlayerPrefs key to store the player's selected language code. | |
bool | saveLanguageInPlayerPrefs [get, set] |
bool | useDefaultLanguageForBlankTranslations [get, set] |
Events | |
static System.Action< string > | languageChanged = null |
Manages localization settings.
|
inline |
Returns the localized text for a field in a specified language.
|
inline |
Returns the localized text for a field in the current language.
|
inline |
Checks if text table(s) have a specified field.
fieldName |
|
inline |
Checks if text table(s) support the specified language.
|
inline |
|
inline |
Updates the current language and all localized UIs.
language | Language code defined in your Text Table. |
|
getset |
(Optional) Any additional text tables.
|
getset |
Gets or sets the current language.
Setting the current language also updates localized UIs.
|
getset |
The PlayerPrefs key to store the player's selected language code.
|
staticgetset |
Current global instance of UILocalizationManager.
If one doesn't exist, a default one will be created.
|
getset |
|
getset |
|
getset |
Overrides the global text table.
|
getset |
|
static |