Skip to content

raylib.IsModelValid

JoeStrout edited this page Oct 17, 2026 · 3 revisions

Check if model is valid (loaded in GPU, VAO/VBOs)

Parameters

Parameter Default Value Note
model

Return value

Condition Return Value
(always) number

Notes

Example

mesh = raylib.GenMeshCube(1, 1, 1)
model = raylib.LoadModelFromMesh(mesh)
if raylib.IsModelValid(model) then
    print "Model loaded successfully"
end if
raylib.UnloadModel model

Clone this wiki locally