A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.unity3d.com/ScriptReference/UIElements.MeshWriteData.SetNextIndex.html below:

Unity - Scripting API: UIElements.MeshWriteData.SetNextIndex

MeshWriteData.SetNextIndex Suggest a change Success!

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 Submission failed

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 Your name Your email Suggestion*

Cancel

Declarationpublic void SetNextIndex(ushort index);

Parameters Parameter Description index The value of the next index. Description

Assigns the value of the next index of the allocated indices list.

Used to iteratively fill the values of the allocated indices via repeated calls to this function until all values have been provided. This way of filling index data is mutually exclusive with the use of SetAllIndices. After each invocation to this function, the internal counter for the next index is automatically incremented. When this method is called, it is not possible to use SetAllIndices to fill the indices. The index values provided refer directly to the vertices allocated in the same MeshWriteData object. Thus, an index of 0 means the first vertex and index 1 means the second vertex and so on.

Note that calling SetNextIndex fewer times than the allocated number of indices will leave the remaining indices with random values as MeshGenerationContext.Allocate does not initialize the returned data to 0 to avoid redundant work.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4