Skip to content

Format

typescript
SubMeshDescriptor.vertexCount

class: SubMeshDescriptor

Description

The total number of vertices in the submesh at the specified index in the array of submesh indices.

Parameters

param_nametypedescription

Return

typedescription
number

Code Example

typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
let subMeshes = mesh.subMeshes;
let subMesh = subMeshes[0];
subMesh.vertexCount;