SetAllIndices
Fills the values of the allocated indices with values copied directly from an array. Each 3 consecutive indices form a single triangle.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
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
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.