This script localizes the content of the TextMesh element on this GameObject. More...
Public Member Functions | |
virtual void | LocalizeText () |
virtual void | UpdateFieldName (string newFieldName="") |
Public Member Functions inherited from PixelCrushers.LocalizeUI | |
virtual void | ValidateFieldNames () |
If fieldName(s), tmpFieldName(s) are blank, set them to the UI element's text. | |
virtual void | UpdateText () |
Set UI element's text (and possibly font) according to current language. | |
virtual void | SetFieldName (string newFieldName="") |
Sets the field name, which is the key to use in the text table. | |
virtual void | UpdateDropdownOptions () |
If changing the Dropdown options, call this afterward to update the localization. | |
Additional Inherited Members | |
Protected Member Functions inherited from PixelCrushers.LocalizeUI | |
virtual void | Start () |
virtual void | OnEnable () |
virtual bool | HasLanguage (string language) |
virtual bool | HasField (string fieldName) |
virtual string | GetLocalizedText (string fieldName) |
Properties inherited from PixelCrushers.LocalizeUI | |
TextTable | textTable [get, set] |
LocalizedFonts | localizedFonts [get, set] |
string | fieldName [get, set] |
bool | started [get] |
List< string > | fieldNames [get, set] |
List< string > | tmpFieldNames [get, set] |
UnityEngine.UI.Text | text [get, set] |
UnityEngine.UI.Dropdown | dropdown [get, set] |
This script localizes the content of the TextMesh element on this GameObject.
You can assign the localized text table to this script or the Dialogue Manager. The element's starting text value serves as the field name to look up in the table.
Note: Since TextMesh has been deprecated in later versions of Unity, this component is only valid for Unity 2018.2 or older.
|
inlinevirtual |
|
inlinevirtual |