How to have Unity Particle System render behind other GameObjects

1.4k views Asked by At

I am using Unity Particle System to generate confetti when a user has finished a level. However, I am not able to have the particles appear behind the gameobjects. Any help would be appreciated.

I added the particle system to a gameobject, created a camera for it and have the camera for the particle gameobject. From there, I set the depth of the gameobject to 0 so that it renders behind the other gameobjects. Did not work.

UPDATE**

I have tried the following solution. However, I am unable to set the camera alpha to 0. I am able to put the particle system to an object but not able to set the camera alpha to 0. How can I do that?

This is what I am seeing. Particle Camera

1

There are 1 answers

6
Sameer Ahmed On

You can set the layer of particle system "Particle" and make two cameras, 1 for particle and set occlusion layer to "Particle" and other camera to have all layers except the "Particle" and set its priority higher than the previous camera.