文档

Unity Engine

Unity Engine

MeshTopology

Topology of Mesh faces.
阅读时间1 分钟最后更新于 1 个月前

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.