I have a particle system, and my character, which is a sprite. I want to create a particle for smoke/dust raising from the ground, and I want my character to be able to move over it.
The problem is that the particles are all drawn in front or behind the sprite, even if the sprite is in the middle of the smoke:
If I move the sprite a little forward, all the particles are behind:
It's like all particles are sharing the same Z order of the particle system itself.
I have been facing this problem from a long time, and I tried using other shaders, new sorting layers, and messing with the particle system fudge, but the result is always the same.
I want the particles to be rendered in the correct order, those that are further away, behind the character; and those closer, in front of the character.
Any idea of what is happening here?