Particle Systems not working in game

I recently did a tutorial through gamedev.tv and it involved making a particle system (laser) to fire on mouse click as well as a couple of other systems such as explosions on being destroyed. Over the past couple of days, all of those particle systems have stopped working in game and i’m not sure why. The sound still plays for the laser when I click but I don’t get the emission, and when my player ship dies, no explosion happens either. All of the particle systems work perfectly fine in the scene view, and as expected, but when I go into game mode none of them work, while they did maybe a week ago.

I’m using Unity 2020.2.2f1

I can post any screenshot of any modules/code you need to see, but I don’t understand what the issue is. I’ve tried looking up other posts and they were all very outdated or their solutions also didn’t work. I did see a more recent post about changing the Y rotation on the Shape module of the particle system to greater than 0, but that did not work for me.

Wherever your code makes the particle effect to run it, execute a Debug.Break() to pause the editor.

Now go looking through your scene. Can you find the particles? Are there any errors in the console?

This should always be your first step when something fails to appear.

No console errors but I did manage to stumble across the issue. The particle systems all had “play on awake” turned off. I’m not sure if I accidentally set that or how or maybe just forgot it was necessary to work properly. The way I had it set up, I was turning on/off the emission module and I was expecting that to cause it to play. I guess my issue is solved then!

1 Like