SetMesh(in UIMesh)
Replace this draw's entire geometry in a single call: vertices, indices, and all extras channels.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
SetMesh(UIMesh)
public void SetMesh(in UIMesh mesh)
Parameters
Remarks
Atomic: all fields update together, so cross-field length invariants are guaranteed. Prefer this over per-slice setters when resizing the entire mesh.
Validation: every non-empty extras slice in must have length equal to , AND its channel must be enabled on the panel's ExtraVertexChannels mask. must be a multiple of 3. If any check fails the call is rejected (this draw stays unchanged) and an error is logged.
meshmesh.vertices.Lengthmesh.indices.LengthMetadata (, , , ) is preserved.
renderTypephasetextureuserData