ドキュメント

Unity Engine

Unity Engine

SetAllIndices

Fills the values of the allocated indices with values copied directly from an array. Each 3 consecutive indices form a single triangle.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

SetAllIndices(ushort[])

Fills the values of the allocated indices with values copied directly from an array. Each 3 consecutive indices form a single triangle.
public void SetAllIndices(ushort[] indices)

Parameters

indices

The array of indices to copy from. The length of the array must match the allocated index count.

Remarks

When this method is called, it is not possible to use MeshWriteData.SetNextIndex to fill the indices.

SetAllIndices(NativeSlice<ushort>)

Fills the values of the allocated indices with values copied directly from an array. Each 3 consecutive indices form a single triangle.
public void SetAllIndices(NativeSlice<ushort> indices)

Parameters

The array of indices to copy from. The length of the array must match the allocated index count.

Remarks

When this method is called, it is not possible to use MeshWriteData.SetNextIndex to fill the indices.