What it does
mesh.delete acts on mesh: it deletes. It takes id.
Signature
mesh.delete(id)Arguments
id
Example · generated
function start() { mesh.createBox('box', { size: 1 }); mesh.delete('box');}mesh.createBox is there to give the call something to act on; mesh.delete is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.