What it does
particles.create brings a particles object into being: it is how the rest of the script comes to have one. It takes id, capacity and emitterMeshId. emitterMeshId is optional.
Signature
particles.create(id, capacity, emitterMeshId?)Arguments
idcapacityemitterMeshIdoptional
Example · generated
function start() { particles.create('main', 10);}particles.create 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.