Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
TMPro.TMP_MeshInfo Struct Reference

Structure which contains the vertex attributes (geometry) of the text object. More...

Public Member Functions

void Clear ()
 Function to clear the vertices while preserving the Triangles, Normals and Tangents. More...
 
void Clear (bool uploadChanges)
 Function to clear the vertices while preserving the Triangles, Normals and Tangents. More...
 
void ClearUnusedVertices ()
 Function to clear the vertices while preserving the Triangles, Normals and Tangents. More...
 
void ClearUnusedVertices (int startIndex)
 Function used to mark unused vertices as degenerate. More...
 
void ClearUnusedVertices (int startIndex, bool updateMesh)
 Function used to mark unused vertices as degenerate an upload resulting data to the mesh. More...
 
void ResizeMeshInfo (int size)
 Function to resized the content of MeshData and re-assign normals, tangents and triangles. More...
 
void ResizeMeshInfo (int size, bool isVolumetric)
 Function to resized the content of MeshData and re-assign normals, tangents and triangles. More...
 
void SortGeometry (VertexSortingOrder order)
 
void SortGeometry (IList< int > sortingOrder)
 Function to rearrange the quads of the text object to change their rendering order. More...
 
void SwapVertexData (int src, int dst)
 Method to swap the vertex attributes between src and dst quads. More...
 
 TMP_MeshInfo (Mesh mesh, int size)
 Function to pre-allocate vertex attributes for a mesh of size X. More...
 
 TMP_MeshInfo (Mesh mesh, int size, bool isVolumetric)
 Function to pre-allocate vertex attributes for a mesh of size X. More...
 

Public Attributes

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

Detailed Description

Structure which contains the vertex attributes (geometry) of the text object.

Constructor & Destructor Documentation

TMPro.TMP_MeshInfo.TMP_MeshInfo ( Mesh  mesh,
int  size 
)
inline

Function to pre-allocate vertex attributes for a mesh of size X.

Parameters
mesh
size
TMPro.TMP_MeshInfo.TMP_MeshInfo ( Mesh  mesh,
int  size,
bool  isVolumetric 
)
inline

Function to pre-allocate vertex attributes for a mesh of size X.

Parameters
mesh
size
isVolumetric

Member Function Documentation

void TMPro.TMP_MeshInfo.Clear ( )
inline

Function to clear the vertices while preserving the Triangles, Normals and Tangents.

void TMPro.TMP_MeshInfo.Clear ( bool  uploadChanges)
inline

Function to clear the vertices while preserving the Triangles, Normals and Tangents.

void TMPro.TMP_MeshInfo.ClearUnusedVertices ( )
inline

Function to clear the vertices while preserving the Triangles, Normals and Tangents.

void TMPro.TMP_MeshInfo.ClearUnusedVertices ( int  startIndex)
inline

Function used to mark unused vertices as degenerate.

Parameters
startIndex
void TMPro.TMP_MeshInfo.ClearUnusedVertices ( int  startIndex,
bool  updateMesh 
)
inline

Function used to mark unused vertices as degenerate an upload resulting data to the mesh.

Parameters
startIndex
void TMPro.TMP_MeshInfo.ResizeMeshInfo ( int  size)
inline

Function to resized the content of MeshData and re-assign normals, tangents and triangles.

Parameters
meshData
size
void TMPro.TMP_MeshInfo.ResizeMeshInfo ( int  size,
bool  isVolumetric 
)
inline

Function to resized the content of MeshData and re-assign normals, tangents and triangles.

Parameters
size
isVolumetric
void TMPro.TMP_MeshInfo.SortGeometry ( VertexSortingOrder  order)
inline
void TMPro.TMP_MeshInfo.SortGeometry ( IList< int >  sortingOrder)
inline

Function to rearrange the quads of the text object to change their rendering order.

Parameters
sortingOrder
void TMPro.TMP_MeshInfo.SwapVertexData ( int  src,
int  dst 
)
inline

Method to swap the vertex attributes between src and dst quads.

Parameters
srcIndex of the first vertex attribute of the source character / quad.
dstIndex of the first vertex attribute of the destination character / quad.

Member Data Documentation

Color32 [] TMPro.TMP_MeshInfo.colors32
Mesh TMPro.TMP_MeshInfo.mesh
Vector3 [] TMPro.TMP_MeshInfo.normals
Vector4 [] TMPro.TMP_MeshInfo.tangents
int [] TMPro.TMP_MeshInfo.triangles
Vector2 [] TMPro.TMP_MeshInfo.uvs0
Vector2 [] TMPro.TMP_MeshInfo.uvs2
int TMPro.TMP_MeshInfo.vertexCount
Vector3 [] TMPro.TMP_MeshInfo.vertices

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