Version: 2021.1
public void SetNextVertex (UIElements.Vertex vertex);

参数

vertex 下一个顶点的值。

描述

分配已分配顶点列表的下一个顶点的值。

Used to iteratively fill the values of the allocated vertices via repeated calls to this function until all values have been provided. This way of filling vertex data is mutually exclusive with the use of SetAllVertices. After each invocation to this function, the internal counter for the next vertex is automatically incremented. When this method is called, it is not possible to use SetAllVertices to fill the vertices.

注意,调用 SetNextVertex 的次数少于分配的顶点数将使其余顶点具有随机值,因为 MeshGenerationContext.Allocate 不将返回的数据初始化为 0 以避免冗余工作。