MeshIndexType
EnumPossible index data types used by MeshBuilder.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Possible index data types used by MeshBuilder. MeshIndexType.UInt16 is the value normally used.
Index
Example
// Constructs a new mesh builder
var builder = new MeshBuilder([
{ name: "position", components: 3 },
{ name: "normal", components: 3, normalized: true },
{ name: "texture0", components: 2 },
{ name: "color", components: 4 },
]);
builder.topology = MeshTopology.Triangles;
builder.indexType = MeshIndexType.UInt16;
Enumeration Members
None
None:
number
No index data type
UInt16
UInt16:
number
Unsigned integer, this is the value normally used