Format
typescript
Mesh.indexFormatclass: Mesh
Description
The format of the mesh index buffer data.
The index buffer can be either 16-bit or 32-bit, as detailed in IndexFormat. The purpose of the index buffer is to determine the triangles of the mesh by specifying the order of vertices through indices. By using indices, it is possible to reduce the memory required for storing and rendering large meshes.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
IndexFormat | The format of the index buffer data. |
Code Example
typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
mesh.indexFormat;