Version: 2020.2
public void SetAllVertices (Vertex[] vertices);

参数

vertices 要从中进行复制的顶点的数组。该数组的长度必须与分配的顶点数量一致。

描述

Fills the values of the allocated vertices with values copied directly from an array. When this method is called, it is not possible to use SetNextVertex to fill the allocated vertices array.

When this method is called, it is not possible to use SetNextVertex to fill the vertices.


public void SetAllVertices (NativeSlice<Vertex> vertices);

参数

vertices The slice of vertices to copy from. The length of the slice must match the allocated vertex count.

描述

Fills the values of the allocated vertices with values copied directly from a slice. When this method is called, it is not possible to use SetNextVertex to fill the vertices.