Localizes a Unity UI element using a TextTable.
More...
Localizes a Unity UI element using a TextTable.
◆ GetLocalizedText()
virtual string PixelCrushers.LocalizeUIText.GetLocalizedText |
( |
string |
fieldName | ) |
|
|
inlineprotectedvirtual |
◆ OnEnable()
virtual void PixelCrushers.LocalizeUIText.OnEnable |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ SetFieldName()
virtual void PixelCrushers.LocalizeUIText.SetFieldName |
( |
string |
newFieldName = "" | ) |
|
|
inlinevirtual |
Sets the field name, which is the key to use in the TextTable.
By default, the field name is the initial value of the Text component.
- Parameters
-
◆ Start()
virtual void PixelCrushers.LocalizeUIText.Start |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ UpdateDropdownOptions()
virtual void PixelCrushers.LocalizeUIText.UpdateDropdownOptions |
( |
| ) |
|
|
inlinevirtual |
If changing the Dropdown options, call this afterward to update the localization.
◆ UpdateText()
virtual void PixelCrushers.LocalizeUIText.UpdateText |
( |
| ) |
|
|
inlinevirtual |
◆ m_dropdown
UnityEngine.UI.Dropdown PixelCrushers.LocalizeUIText.m_dropdown = null |
|
protected |
◆ m_fieldNames
List<string> PixelCrushers.LocalizeUIText.m_fieldNames = new List<string>() |
|
protected |
◆ m_started
bool PixelCrushers.LocalizeUIText.m_started |
|
protected |
◆ m_text
UnityEngine.UI.Text PixelCrushers.LocalizeUIText.m_text = null |
|
protected |
◆ fieldName
If set, use this field name when localizing; otherwise use the initial value of the UI element.
◆ textTable
TextTable PixelCrushers.LocalizeUIText.textTable |
|
getset |
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/LoveHate/Dev/Source/Assets/Plugins/Pixel Crushers/Common/Scripts/Text/LocalizeUIText.cs