Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MeshTopology

Topology of Mesh faces.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum MeshTopology

Remarks

Normally meshes are composed of triangles (three vertex indices per face), but in some cases you might want to render complex things that are made up from lines or points. Creating a Mesh with that topology and using it to render is usually the most efficient way.
Additional Resources: Mesh.SetIndices function.

Fields

Value

Description

LinesMesh is made from lines.
LineStripMesh is a line strip.
PointsMesh is made from points.
QuadsMesh is made from quads.
TrianglesMesh is made from triangles.