Version: 2020.2
public int vertexCount ;

描述

Gets the number of vertices in the MeshData. (Read Only)

vertexCount determines the number of elements in all vertex attribute arrays, including positions (GetVertices), normals (GetNormals), and texture coordinates (GetUVs). See Also: Mesh.vertexCount, GetVertexData, Mesh.AcquireReadOnlyMeshData.