Motion
Get Motion

ReferenceScripting APIMotionSceneparticles

MotionScene.particles

method

A particle layer's system: bursts, rates, pausing.

Nameparticles
Kindmethod of MotionScene
Called asscene.particles(…)
As a nodeBurst Particles (logic graph)
Since0.4

Syntax

particles(layer: string): MotionParticles

Parameters

NameTypeDescription
layerstringThe layer's name or id (Particles, Fx, Rain, Fireworks, Fire, 3D particles)

Returns

MotionParticles: its system.

Remarks

Another kind of layer does nothing, and the console says so.

Example

scene.on("beat", (n) => { if (n % 4 === 0) scene.particles("Embers").burst(80); });

See also

MotionParticles