Class TMP_TextInfo
Class which contains information about every element contained within the text object.
Inheritance
System.Object
TMP_TextInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TMPro
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
| Type |
Description |
| System.Int32 |
|
characterInfo
Declaration
public TMP_CharacterInfo[] characterInfo
Field Value
lineCount
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
lineInfo
Declaration
public TMP_LineInfo[] lineInfo
Field Value
linkCount
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
linkInfo
Declaration
public TMP_LinkInfo[] linkInfo
Field Value
materialCount
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
meshInfo
Declaration
public TMP_MeshInfo[] meshInfo
Field Value
pageCount
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
pageInfo
Declaration
public TMP_PageInfo[] pageInfo
Field Value
spaceCount
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
spriteCount
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
textComponent
Declaration
public TMP_Text textComponent
Field Value
wordCount
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
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(Boolean)
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 |
| System.Boolean |
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(Boolean)
Declaration
public void ResetVertexLayout(bool isVolumetric)
Parameters
| Type |
Name |
Description |
| System.Boolean |
isVolumetric |
|
Resize<T>(ref T[], Int32)
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 |
|
| System.Int32 |
size |
|
Type Parameters
Resize<T>(ref T[], Int32, Boolean)
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 |
|
| System.Int32 |
size |
|
| System.Boolean |
isBlockAllocated |
|
Type Parameters