Format
typescript
SubMeshDescriptor.firstVertexclass: SubMeshDescriptor
Description
The first vertex of the submesh index array.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number |
Code Example
typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
let meshs = mesh.subMeshes;
let subMesh = meshs[0];
subMesh.firstVertex;