Mesh.vertexCount Manual     Reference     Scripting  
Scripting > Runtime Classes > Mesh
Mesh.vertexCount

var vertexCount : int

Description

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

function Start () {
var mesh : Mesh = GetComponent(MeshFilter).sharedMesh;
print(mesh.vertexCount);
}