Class TMP_TextInfo
Class which contains information about every element contained within the text object.
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
public class TMP_TextInfo
Constructors
TMP_TextInfo()
Declaration
TMP_TextInfo(TMP_Text)
Declaration
public TMP_TextInfo(TMP_Text textComponent)
Parameters
Type |
Name |
Description |
TMP_Text |
textComponent |
|
Fields
characterCount
Declaration
public int characterCount
Field Value
characterInfo
Declaration
public TMP_CharacterInfo[] characterInfo
Field Value
lineCount
Declaration
Field Value
lineInfo
Declaration
public TMP_LineInfo[] lineInfo
Field Value
linkCount
Declaration
Field Value
linkInfo
Declaration
public TMP_LinkInfo[] linkInfo
Field Value
materialCount
Declaration
Field Value
meshInfo
Declaration
public TMP_MeshInfo[] meshInfo
Field Value
pageCount
Declaration
Field Value
pageInfo
Declaration
public TMP_PageInfo[] pageInfo
Field Value
spaceCount
Declaration
Field Value
spriteCount
Declaration
Field Value
textComponent
Declaration
public TMP_Text textComponent
Field Value
wordCount
Declaration
Field Value
wordInfo
Declaration
public TMP_WordInfo[] wordInfo
Field Value
Methods
Clear()
Function to clear the counters of the text object.
Declaration
ClearAllMeshInfo()
Function to clear the content of all the MeshInfo arrays while preserving their Triangles, Normals and Tangents.
Declaration
public void ClearAllMeshInfo()
ClearLineInfo()
Function to clear and initialize the lineInfo array.
Declaration
public void ClearLineInfo()
ClearMeshInfo(bool)
Function to clear the content of the MeshInfo array while preserving the Triangles, Normals and Tangents.
Declaration
public void ClearMeshInfo(bool updateMesh)
Parameters
Type |
Name |
Description |
bool |
updateMesh |
|
ClearUnusedVertices(MaterialReference[])
Function used to mark unused vertices as degenerate.
Declaration
public void ClearUnusedVertices(MaterialReference[] materials)
Parameters
CopyMeshInfoVertexData()
Function to copy the MeshInfo Arrays and their primary vertex data content.
Declaration
public TMP_MeshInfo[] CopyMeshInfoVertexData()
Returns
ResetVertexLayout(bool)
Declaration
public void ResetVertexLayout(bool isVolumetric)
Parameters
Type |
Name |
Description |
bool |
isVolumetric |
|
Resize<T>(ref T[], int)
Function to resize any of the structure contained in the TMP_TextInfo class.
Declaration
public static void Resize<T>(ref T[] array, int size)
Parameters
Type |
Name |
Description |
T[] |
array |
|
int |
size |
|
Type Parameters
Resize<T>(ref T[], int, bool)
Function to resize any of the structure contained in the TMP_TextInfo class.
Declaration
public static void Resize<T>(ref T[] array, int size, bool isBlockAllocated)
Parameters
Type |
Name |
Description |
T[] |
array |
|
int |
size |
|
bool |
isBlockAllocated |
|
Type Parameters