What it does
mesh.createDecal creates a Decal in mesh. It takes id, targetId, position, normal and size.
Signature
mesh.createDecal(id, targetId, position, normal, size)Arguments
idtargetIdpositionnormalsize
Example · generated
function start() { mesh.createDecal('decal', 'decal', 1, 1, 1);}mesh.createDecal is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.