Documentation

Unity Engine


User Manual

Script Reference

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.
Read time 1 minuteLast updated 11 days ago

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.