- Home /
Particle System Not Firing Immediately
I'm REALLY new to Unity (downloaded it over the long weekend) and I've been following the tutorial here. It's a little old, but it's teaching me a lot of new stuff. The only problem is on the first game. What happens is when an object is clicked, it is moved, and an explosion (particle system) is Instantiated.
Everything works like it should when I look at the hierarchy window, but in the Game view, that's not the case. The particle system is created like it should, but there is a delay of about a second before it spawns actual particles. There's no Start Delay on the gameObject
itself, and I can't see a reason this would happen based on the script. Here is the script;
Instantiate(explosion, transform.position, transform.rotation);
var position = Vector3(Random.Range(-4.5, 4.5), Random.Range(-4.5, 4.5), 0);
transform.position = position;
Explosion
in this case is a prefab for a particle system.
Is there any reason it is behaving like it is?
Answer by supernat · May 30, 2014 at 01:15 AM
Usually, this means you need to check the prewarm check box. The reason you see it okay in the scene editor is because it has already warmed up, things are already in motion. If you deselect the Emission check box in the scene editor and reselect it, it will more closely resemble what it will do in the game on first startup.
If using a particleSystem (not the old ParticleEmitters,) and this shows you're really making a gradual stream, and you don't like how Prewarm looks, can open Emission and add a Burst at time=0 seconds.