Class MeshUtility
Provides functions for generating mesh attributes and utilities.
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public static class MeshUtility
Methods
Name | Description |
---|---|
CollapseSharedVertices(Mesh, Vertex[]) | Merges coincident vertices where possible, optimizing the vertex count of a Mesh object. |
Compile(ProBuilderMesh, Mesh, MeshTopology) | Compiles a Mesh from a ProBuilderMesh. |
CopyTo(Mesh, Mesh) | Copies mesh attribute values from one mesh to another. |
DeepCopy(Mesh) | Returns a new mesh containing all attributes and values copied from the specified source mesh. |
FitToSize(ProBuilderMesh, Bounds, Vector3) | Scales mesh vertices to fit within a bounding box. |
GenerateTangent(Mesh) | Generates tangents and applies them on the specified mesh. |
GetIndexCount(Mesh) | Returns the number of indices this mesh contains. |
GetPrimitiveCount(Mesh) | Returns the number of triangles or quads this mesh contains. No other mesh topologies are considered. |
GetVertices(Mesh) | Creates a new array of vertices with values from a Mesh object. |
Print(Mesh) | Prints a detailed string summary of the mesh attributes. |