- Home /
Particle system behind tthe background 2D
I'm not being able to make the particle system show in front of my background in unity. I'm using a Sprite as a background.
I've tried this solution already: http://answers.unity3d.com/questions/577288/particle-system-rendering-behind-sprites.html but doesn't seem to work for me.
Answer by Theopt · Jun 02, 2014 at 04:44 PM
Fixed. Had to increase Z value closer to the camera.
Answer by jakirhossain · Jan 28, 2020 at 10:34 PM
Try to set Z value of your Particles System same as your Main Camera Z value. In my case, it was -10. After set the Z value like this, its worked for me.
Thanks jakirhossain, it also works for me perfect. But I can not understand the logic of your solution ....
Answer by kaboof69 · May 07, 2015 at 06:27 AM
I just wanted to add that it seemed like I had the same problem but when I pressed pause and checked 3D at 1 second intervals it seemed that my particle effect was actually moving in the z direction and to fix it I simply changed my prefab of my "particle system" and added "limit velocity over lifetime" to show x=100, y=100 and z=0 to make sure it stopped moving in the z direction for good.
Answer by xqtr123 · May 24, 2021 at 05:18 PM
In my case the particle system had child particle systems which all had to change the sorting layer in the Renderer tab for it to work.