public int vertexCount;
Description 描述
Returns the number of vertices in the Mesh (Read Only).
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Mesh mesh = GetComponent<MeshFilter>().mesh; print(mesh.vertexCount); } }
Returns the number of vertices in the Mesh (Read Only).
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Mesh mesh = GetComponent<MeshFilter>().mesh; print(mesh.vertexCount); } }