class in UnityEngine.UIElements
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
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.
|indexCount||The number of indices successfully allocated for VisualElement content drawing.|
|uvRegion||A rectangle describing the UV region holding the texture passed to MeshGenerationContext.Allocate.|
|vertexCount||The number of vertices successfully allocated for VisualElement content drawing.|
|SetAllIndices||Fills the values of the allocated indices by copying the values directly from an array. Each 3 consecutive indices form a single triangle.|
|SetAllVertices||The array of vertices to copy from. The length of the array must match the allocated vertex count.|
|SetNextIndex||Assigns the value of the next index of the allocated indices list.|
|SetNextVertex||Assigns the value of the next vertex of the allocated vertices list.|
Did you find this page useful? Please give it a rating: