Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Mesh.vertexCount

Switch to Manual
public int vertexCount;

Description

Returns the number of vertices in the Mesh (Read Only).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Mesh mesh = GetComponent<MeshFilter>().mesh; print(mesh.vertexCount); } }