Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Mesh.GetIndices

GetIndices(submesh: int): int[];
int[] GetIndices(int submesh);
def GetIndices(submesh as int) as int[]

Description

Returns the index buffer for the submesh.

The layout of indices depends on the topology of a submesh, for example for triangular mesh each triangle will result in three indices.

See Also: subMeshCount, GetTopology, MeshTopology enum.