Motion
Get Motion

ReferenceScripting APIMotionParticlessetRate

MotionParticles.setRate

method

Sets how many particles an emitter makes a second, in place of its own rate.

NamesetRate
Kindmethod of MotionParticles
Called asscene.particles(…).setRate(…)
As a nodeSet Spawn Rate (logic graph)
Since0.4

Syntax

setRate(    perSecond: number,    emitter?: string | number): void

Parameters

NameTypeDescription
perSecondnumberParticles a second, 0 or more (0 stops its steady stream; bursts still fire)
emitterstring | numberOptional. Which emitter, by number or name; every emitter unless given

Returns

Nothing.