Version: 2017.1
public void SetTriangles (List<int> triangles, int submesh);
public void SetTriangles (int[] triangles, int submesh);

パラメーター

triangles The list of indices that define the triangles.
submesh The submesh to modify.
calculateBounds Calculate the bounding box of the Mesh after setting the triangles. This is done by default. Use false when you want to use the existing bounding box and reduce the CPU cost of setting the triangles.

説明

サブメッシュの三角形のリストを設定します。

A sub-Mesh is simply a separate triangle list. When the Mesh Renderer uses multiple Materials, you should ensure that there are as many sub-Meshes as Materials.

境界エラーを避けるために頂点配列を割り当てた後、三角形の配列を代入することをお勧めします。

See Also: subMeshCount.