Versions with this page:
Versions without this page:
返回网格中的顶点数(只读)。
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Start() { Mesh mesh = GetComponent<MeshFilter>().sharedMesh; print(mesh.vertexCount); } }