Skip to content

raylib.GetModelMesh

JoeStrout edited this page Nov 16, 2026 · 1 revision

Get one of a model's meshes, for DrawMesh, GetRayCollisionMesh, GetMeshBoundingBox, GetMeshBuffer, UpdateMeshBuffer and the like. The model owns the mesh: UnloadMesh of it does nothing, and once the model is unloaded it reads as unloaded too. Functions that change the Mesh struct itself (GenMeshTangents, UploadMesh) do not affect the model; use them before LoadModelFromMesh

Parameters

Parameter Default Value Note
model
meshIndex 0

Return value

Condition Return Value
(always) number

Notes

Clone this wiki locally