Skip to content

raylib.ExportMesh

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Export mesh data to file

Parameters

Parameter Default Value Note
mesh
fileName

Return value

Condition Return Value
(always) number

Notes

Example

mesh = raylib.GenMeshCube(1, 1, 1)
result = raylib.ExportMesh(mesh, "cube.obj")
if result then
    print "Mesh exported successfully"
else
    print "Export failed"
end if
raylib.UnloadMesh mesh

Clone this wiki locally