Localization Components
Visibility: public.
Assembly: "AD_LocalizationTools".
Namespace: "DGGLocalization.Unity.Base".
Properties
string LocalizationCode - the current localization key.
Events
event UnityAction<string> OnSwitchLanguage - triggered when the language is changed. Passes the translation for the new language.
Methods
string GetLocalization()
Returns the translation for the current language.
void SetLocalization(string localizationCode)
Sets a new localization by key.
void SetLocalization(LocalizationData localizationData)
Sets a new localization by localizationData.
Text
Visibility: public.
Assembly: "AD_LocalizationTools".
Namespace: "DGGLocalization.Unity.Text".
Does not contain public properties/methods. Changes the text following the update of LocalizationInfo.
Visibility: public.
Assembly: "AD_LocalizationTools".
Namespace: "DGGLocalization.Unity.Text".
Does not contain public properties/methods. Changes the text following the update of LocalizationInfo.
Visibility: public.
Assembly: "AD_LocalizationTools".
Namespace: "DGGLocalization.Unity.Text".
Properties
bool IsTyping - true when the text is being displayed on the screen.
bool IsFull - true when the text display is complete.
Events
UnityAction OnStartTyping - triggered when the text starts being displayed on the screen.
UnityAction OnEndTyping - triggered when the text display is complete.
Constants
float MinimumCharTypingTime - the minimum time for displaying a character.
float MaximumCharTypingTime - the maximum time for displaying a character.
void SetCharTypingTime(float value, bool isRedraw)
Changes the character display speed. value - the new value. isRedraw - whether the text should be displayed from the beginning.
void StopTyping()
Instantly displays all the text on the screen.
Dropdown
Visibility: public.
Assembly: "AD_LocalizationTools".
Namespace: "DGGLocalization.Unity.Dropdown".
Properties
IReadOnlyList<string> StringItems - localization keys.
IReadOnlyList<LocalizationString> Items - localization keys in their original form.
void SetItems(List<string> items)
Sets new localization keys.
IMPORTANT! If more or fewer items are provided than there are in the dropdown, the items will be automatically added/removed.
Last updated