Mesh.GetTriangles Manual     Reference     Scripting  
Scripting > Runtime Classes > Mesh
Mesh.GetTriangles

function GetTriangles (submesh : int) : int[]

Description

Returns the triangle list for the submesh.

A submesh is simply a seperate triangle list. When the mesh renderer uses multiple materials, you should ensure that there are as many submeshes as materials.

See Also: subMeshCount.