Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
public function SetTriangles(triangles:
int[],
submesh: int):
void;
public void SetTriangles(int[] triangles,
int submesh);
public
def SetTriangles(triangles as int[],
submesh as int)
as void
Description
サブメッシュの三角形のリストを設定します
サブメッシュはシンプルな三角形のリストです。メッシュレンダラーで複数のマテリアルを使用するとき、
サブメッシュがマテリアルと確実に同数あることを確認すべきです。
It is recommended to assign a the triangle array after assigning the vertex array in order to avoid out of bounds errors.
See Also: subMeshCount.