PixelCrushers.DialogueSystem.TextMeshPro.LocalizeTextMeshPro Class Reference

Localizes the text content of a TextMeshPro and/or TextMeshProUGUI component. More...

Inheritance diagram for PixelCrushers.DialogueSystem.TextMeshPro.LocalizeTextMeshPro:
Collaboration diagram for PixelCrushers.DialogueSystem.TextMeshPro.LocalizeTextMeshPro:

Public Member Functions

override void LocalizeText ()
 
override void UpdateFieldName (string newFieldName="")
 Sets the field name, which is the key to use in the localized text table. More...
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.LocalizeUIText
virtual void UpdateOptions ()
 If changing the Dropdown options, call this afterward to update the localization. More...
 

Protected Attributes

TMPro.TextMeshPro textMeshPro
 
TMPro.TextMeshProUGUI textMeshProUGUI
 
- Protected Attributes inherited from PixelCrushers.DialogueSystem.LocalizeUIText
UnityEngine.UI.Text text = null
 
List< string > fieldNames = new List<string>()
 
bool started = false
 
UnityEngine.UI.Dropdown dropdown = null
 

Additional Inherited Members

- Public Attributes inherited from PixelCrushers.DialogueSystem.LocalizeUIText
LocalizedTextTable localizedTextTable
 
string fieldName = string.Empty
 
- Protected Member Functions inherited from PixelCrushers.DialogueSystem.LocalizeUIText
virtual void Start ()
 
virtual void OnEnable ()
 
virtual bool HasCurrentLanguage ()
 

Detailed Description

Localizes the text content of a TextMeshPro and/or TextMeshProUGUI component.

Member Function Documentation

◆ LocalizeText()

override void PixelCrushers.DialogueSystem.TextMeshPro.LocalizeTextMeshPro.LocalizeText ( )
virtual

◆ UpdateFieldName()

override void PixelCrushers.DialogueSystem.TextMeshPro.LocalizeTextMeshPro.UpdateFieldName ( string  newFieldName = "")
virtual

Sets the field name, which is the key to use in the localized text table.

By default, the field name is the initial value of the Text component.

Parameters
fieldName

Reimplemented from PixelCrushers.DialogueSystem.LocalizeUIText.

Member Data Documentation

◆ textMeshPro

TMPro.TextMeshPro PixelCrushers.DialogueSystem.TextMeshPro.LocalizeTextMeshPro.textMeshPro
protected

◆ textMeshProUGUI

TMPro.TextMeshProUGUI PixelCrushers.DialogueSystem.TextMeshPro.LocalizeTextMeshPro.textMeshProUGUI
protected

The documentation for this class was generated from the following file: