How can I get my particle system to appear behind a 2D sprite?

Hi there,

I’ve seen similar questions on this topic, but they seem to have the opposite problem from me.

(See http://forum.unity3d.com/threads/211406-Unity-4-3-Particles-and-Sorting-Layers-(-))

My problem is that the particle system always appears IN FRONT OF the 2D sprites, even if I set the Z depth to behind the sprites. And even if I attach a script to the particle system that has:

function Start () 
{
	 particleSystem.renderer.sortingLayerName = "Background1";
}

(“Background1” is a sorting layer behind the Sprites on Background 2.)

I only started using Unity this week so I’m quite in the dark. Anyone know what’s wrong? I’m using the free version of Unity and coding in javascript.

Thank you!

I think the problem is in Shader of your particle-material or Sprite-material.

If you using unity Sprite, leave it with default material “Spites-Default”.
And for your particle material try to use Particle/Additive or AlphaBlended Shader.

Looks like your particle uses material with FX Shader :wink: