Struct TMP_WordInfo
Important
This package is deprecated. From Unity 2023.2, TextMesh Pro is part of the Unity UI (uGUI) package. For current documentation, refer to TextMesh Pro in the Unity UI package.
Structure containing information about the individual words contained in the text object.
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
public struct TMP_WordInfo
Fields
characterCount
Declaration
public int characterCount
Field Value
firstCharacterIndex
Declaration
public int firstCharacterIndex
Field Value
lastCharacterIndex
Declaration
public int lastCharacterIndex
Field Value
textComponent
Declaration
public TMP_Text textComponent
Field Value
Methods
GetWord()
Returns the word as a string.
Declaration
Returns