Version: 2020.1
public void SetAllIndices (ushort[] indices);

参数

indices 要从中进行复制的索引的数组。该数组的长度必须与分配的索引数量一致。

描述

Fills the values of the allocated indices with values copied directly from an array. Each 3 consecutive indices form a single triangle.

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


public void SetAllIndices (NativeSlice<ushort> indices);

参数

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

描述

Fills the values of the allocated indices with values copied directly from a slice. Each 3 consecutive indices form a single triangle. When this method is called, it is not possible to use SetNextIndex to fill the indices.