- Home /
Getting particles to start emitting before runtime?
Hello,
I'm making an endless runner which has lava at the bottom of the screen. It has a static character and parallax backgrounds. I have a smoke particle off camera to the right, set to emit in the direction of -X, so a layer of smoke is flowing over the lava the way it should be as you progress from left to right. This looks quite nice, but my problem is that for the first few seconds of the level, there is no smoke.
Is there any way, even through scripting (JS preferred, but C# will do) to make it so that the smoke is already emitting when the level starts?
Thanks in advance.
Answer by mikelortega · May 26, 2015 at 09:29 AM
You have to check Prewarm in the Particle System, it will execute a complete loop of the particle system before starting. I hope it helps! :)
Thanks a mil for replying. I only seem to see the prewarm option inside particle systems though, not particle emitters... The smoke I'm using is just a particle emitter... Is there a way I can attach the "Detailed Smoke" emitter to a new particle system?
Thanks for the information'. Brazil here'. :)
I'm sorry, I didn't know the $$anonymous$$esh Particle Emitter component. It is actually marked as Legacy in the documentation (prior to Unity 3.5), so I guess you should update to the new Particle System if it's possible. Remove the $$anonymous$$esh Particle Emitter component and configure a Particle System ins$$anonymous$$d. Sorry I cannot help with $$anonymous$$esh Particle Emiters, I never used them, I hope someone else can help.
O$$anonymous$$, so I played around with a new particle system and managed to get it looking almost as good as the legacy particle emitter, and clicking Prewarm did exactly what I wanted. So, thanks very much! Problem solved :D