PixelCrushers.DialogueSystem.LocalizeTextMesh Class Reference

This script localizes the content of the TextMesh element on this GameObject. More...

Inheritance diagram for PixelCrushers.DialogueSystem.LocalizeTextMesh:
Collaboration diagram for PixelCrushers.DialogueSystem.LocalizeTextMesh:

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

TextMesh m_textMesh
 
- 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

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.

Member Function Documentation

◆ LocalizeText()

override void PixelCrushers.DialogueSystem.LocalizeTextMesh.LocalizeText ( )
virtual

◆ UpdateFieldName()

override void PixelCrushers.DialogueSystem.LocalizeTextMesh.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

◆ m_textMesh

TextMesh PixelCrushers.DialogueSystem.LocalizeTextMesh.m_textMesh
protected

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