Scripting API

TMP_MeshInfo

struct in TMPro · Unity.TextMeshPro

14 of 16 of Unity's members
In Tassix

One material's geometry: four vertices per visible character.

Fields 10

Color32[] colors32
Material material
Mesh mesh
Vector3[] normals
Vector4[] tangents
int[] triangles
TmpUv[] uvs0
Vector2[] uvs2
int vertexCount
Vector3[] vertices

Methods 4

void Clear()
void Clear(bool uploadChanges)
void ClearUnusedVertices()
void SortGeometry(VertexSortingOrder order)
void SortGeometry(System.Collections.Generic.IList<int> sortingOrder)

Reverse puts the last character's quad first (drawn first, so under the others).

Reorders the quads: quad i becomes the one at sortingOrder[i].

void SwapVertexData(int src, int dst)

Swaps two characters' quads (vertex indices, multiples of four): positions, UVs and colors.

Not in Tassix yet 2

(constructor) ResizeMeshInfo