Skip to content

raylib.UpdateMeshBuffer

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Update mesh vertex data in GPU for a specific buffer index

Parameters

Parameter Default Value Note
mesh
index
data
offset 0

Return value

None.

Notes

Example

mesh = raylib.GenMeshPlane(4, 4, 2, 2)
raylib.UploadMesh mesh, true
// Update vertex positions (buffer index 0) with new data
newPositions = [0,0,0, 1,0,0, 1,0,1, 0,0,1]
raylib.UpdateMeshBuffer mesh, 0, newPositions, 0
raylib.UnloadMesh mesh

Clone this wiki locally