New Particle system and layering in 2D

Hiya…
We recently switched to Unity5 and started using the New Particle System, but we can’t get the sparkles to show up in the game. They appear in the Scene view and the Game view, but not when we hit play.

We are using NGUI for our sprites.

We have tried to adjust the Z access, and we’ve tried putting them in different Layers.

Originally, we were using “sorting order” in Unity4.

I’m not sure what other information you might need.

Any advice you can give us would be GREATLY appreciated. This is a huge hurdle for us.

Thanks so much!
Angel…

one day the particle system got “Order in Layer” in “Renderer” menu.

Start the game and switch in scene tab then check what is wrong (try 3d view).

Thank you for the response.

In the old system, I could set the Sorting Layer in the “Renderer”, but I can’t find that in the Renderer component on the new particle system.

It doesn’t have anything resembling sorting or adding a layer.

Am I missing something?

I tried looking at it in 3D and moving the particle object in front of the 2D background, but that didn’t get it showing in the game. It shows in both Scene and Game views, but not when I hit play.

Any other suggestions?

I got it working!

  • Open script for Root in MonoDev

  • Find “#region Public Data” – this makes it visible in the Inspector. Anything with “Public” in front of it will be visible in Inspector.

  • Add a line in that region that says “public ParticleSystem Fog;” (‘Fog’ is whatever you want to name it.)

  • Go back to Unity and drag the gameobject into the new public field.

  • Return to script.

  • Under private void Start, put the “Public” name followed by .GetComponent().sortingOrder = 1;

  • example: Fog.GetComponent().sortingOrder = 1;