How enable and disable Emission in execution?
I don’t remember whether you can activate specific modules through scripting, but I don’t believe you can. Shuriken API support is somewhat limited.
When I need a toggleable emission, I script it by manually calling emission:
myParticleSystem.Emit(count);
Also, I suppose you could set the emission rate property to zero temporarily. It is sometimes convenient to use the particle system’s emission rate in the manual emission call:
myParticleSystem.Emit(myParticleSystem.emissionRate);
I can’t remember if it’s actually “emissionRate” but you’ll see the right property when you hunt through the code completion suggestions.