メッシュの頂点の数(読み取り専用)
function Start () { var mesh : Mesh = GetComponent.<MeshFilter>().sharedMesh; print(mesh.vertexCount); }
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Start() { Mesh mesh = GetComponent<MeshFilter>().sharedMesh; print(mesh.vertexCount); } }