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

function GetTriangles (submesh : int) : int[]


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.