Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


indexCount

Index count for this sub-mesh face data.
Read time 1 minuteLast updated 6 days ago

Definition

public int indexCount { readonly get; set; }

Remarks

This property, together with SubMeshDescriptor.indexStart, determines which part of the whole index buffer is used by a particular sub-mesh. Values in the index buffer are interpreted according to the SubMeshDescriptor.topology property, for example the usual MeshTopology.Triangles topology needs three indices for each triangle.