ParticleSystemSet manualEmitCount and starting again

Hi

I made this startup playground that emits cloud of particles and they are just all gone, but I cant play that sequence again on a call.

So I have some questions:

  1. how to trigger it again without disposing it entirely.
  2. It looks like its still running but all particles are gone, How to stop it when all particles are disposed already.
  3. manualEmitCount seams to be 0 after they are emitted why?

Regards
Peter

Here is the modified PG - https://playground.babylonjs.com/#CMDY7U#1

  • Proper restart function
  • Correct stopping logic
  • Fix for console.log
  • Safe handling of particle lifecycle

“It looks like it’s still running but particles are gone”

Exactly — this is expected behavior.

Babylon particle systems:

  • Keep running even when no particles are alive
  • Emission may have stopped (emit rate = 0 or duration reached)
  • But the system itself is still “active”

manualEmitCount is consumed immediately when used.

So if you do:

system.manualEmitCount = 100;

On the next frame:

100 particles are emitted
manualEmitCount is reset to 0 automatically

It behaves like a one-time trigger, not a persistent value.