Format
typescript
SubMeshDescriptor.vertexCountclass: SubMeshDescriptor
Description
The total number of vertices in the submesh at the specified index in the array of submesh indices.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number |
Code Example
typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
let subMeshes = mesh.subMeshes;
let subMesh = subMeshes[0];
subMesh.vertexCount;