How to stop/start ParticleEmitter2D

What is the proper way to enable/disable the emitter?

My question is pretty much the same as this, which did not have a conclusion. Was something like void SetEmitting(bool enable) ever planned for 2d particles? Thanks

I implemented this by myself in my local repository. Implementation is pretty simple - check out this patch

Would make a great pull-request.

Indeed, it works for me and the code looks good. It would be nice to get this in. Thanks a lot.

OK, I think, it requires some more changes to be in engine (angelscript/lua bindings). I’ll prepare pull request in the near future.

1 Like