Skip to content

Format

typescript
SubMeshDescriptor.firstVertex

class: SubMeshDescriptor

Description

The first vertex of the submesh index array.

Parameters

param_nametypedescription

Return

typedescription
number

Code Example

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