Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Pause emitter without restarting
#1
Hi, when I deactivate the emitter component it stops emission while also destroying the emitted particles. Is it possible to only stop emission, while keeping the already emitted particles alive until their lifetime ends? Kind of like turning a tap on and off without destroying the water already in the sink.
Reply
#2
(18-11-2022, 01:41 PM)gamedev Wrote: Hi, when I deactivate the emitter component it stops emission while also destroying the emitted particles. Is it possible to only stop emission, while keeping the already emitted particles alive until their lifetime ends? Kind of like turning a tap on and off without destroying the water already in the sink.

Hi!

Emission is controlled via the emitter's "speed" property. This works exactly like a faucet: it determines the speed at which fluid flows out of the emitter, and as a result, the volume of fluid/amount of particles per second. See: http://obi.virtualmethodstudio.com/manua...tters.html

Just set speed to zero to stop emission, then back to whatever value it had to resume it.

kind regards,
Reply
#3
Ah that's great, thank you very much!
Reply