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".

Visibility: public.

Assembly: "AD_LocalizationTools".

Namespace: "DGGLocalization.Unity.Text".

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.

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.

Last updated