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.
Help Pause emitter without restarting
|
18-11-2022, 01:51 PM
(This post was last modified: 18-11-2022, 01:54 PM by josemendez.)
(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,
18-11-2022, 02:14 PM
Ah that's great, thank you very much!
|
« Next Oldest | Next Newest »
|