Skip to content

raylib.UnloadModel

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Unload a model and its meshes from memory (RAM and VRAM). Shaders and textures used by its materials are not unloaded, as they may be shared; unload those separately

Parameters

Parameter Default Value Note
model

Return value

None.

Notes

Example

mesh = raylib.GenMeshCube(1, 1, 1)
model = raylib.LoadModelFromMesh(mesh)
// use model for rendering...
raylib.UnloadModel model

Clone this wiki locally