Version: 2017.3

Mesh.vertexCount

Cambiar al Manual
public int vertexCount ;

Descripción

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

using UnityEngine;
using System.Collections;

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