Mesh.SetTriangles 设定三角形

function SetTriangles (triangles : int[], submesh : int) : void

Description描述

Sets the triangle list for the submesh

为子网格设定三角形列表

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

一个子网格仅仅是一个单独的三角形列表。当网格渲染器使用多个材质时,你应该保证有像子网格同样数量的材质。

It is recommended to assign a the triangle array after assigning the vertex array in order to avoid out of bounds errors.

建议在赋值顶点数组后再给三角形数组赋值,以避免越界错误。

参见: subMeshCount.

Page last updated: 2010-12-9