MeshWriteData

class in UnityEngine.UIElements

Cambiar al Manual

Descripción

A class that represents the vertex and index data allocated for drawing the content of a VisualElement.

You can use this object to fill the values for the vertices and indices only during a callback to the VisualElement.generateVisualContent delegate. Do not store the passed MeshWriteData outside the scope of VisualElement.generateVisualContent as Unity could recycle it for other callbacks.

Variables

indexCountThe number of indices successfully allocated for VisualElement content drawing.
uvRegionA rectangle describing the UV region holding the texture passed to MeshGenerationContext.Allocate.
vertexCountThe number of vertices successfully allocated for VisualElement content drawing.

Funciones Públicas

SetAllIndicesFills the values of the allocated indices by copying the values directly from an array. Each 3 consecutive indices form a single triangle.
SetAllVerticesThe array of vertices to copy from. The length of the array must match the allocated vertex count.
SetNextIndexAssigns the value of the next index of the allocated indices list.
SetNextVertexAssigns the value of the next vertex of the allocated vertices list.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961