Mesh.vertexCount

Switch to Manual
public int vertexCount ;

Description

返回网格中的顶点数(只读)。

using UnityEngine;
using System.Collections;

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