Select your preferred scripting language. All code snippets will be displayed in this language.
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.
CloseOptimize mesh for frequent updates.
Call this before assigning vertices to get better performance when continually updating the Mesh.
Internally, this makes the Mesh use "dynamic buffers" in the underlying graphics API, which
are more efficient when Mesh data changes often.
See Also: vertices, normals, triangles, UploadMeshData.