Mesh topology data
Learn about mesh topology data, which describes the type of face that a mesh has.
Read time 1 minuteLast updated a month ago
Topology describes the type of face that a mesh has.
A mesh’s topology defines the structure of the index buffer, which in turn describes how the vertex positions combine into faces. Each type of topology uses a different number of elements in the index array to define a single face.
Unity supports the following mesh topologies:
- Triangle
- Quad
- Lines
- LineStrip
- Points
In the class, you can get the topology with Mesh.GetTopology, and set it as a parameter of Mesh.SetIndices.
MeshFor more information on supported mesh topologies, see the documentation for the MeshTopology enum.