Version: 2020.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 以避免冗余工作。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961