Layering between sprite layers?

Hi,

I hope someone can help me here. I’m using unity for two weeks now and was playing around with one sprite, giving it a skin, adding bones, weights and animation, also made a hierarchy inside the sprite editor so all the body parts would be in the right order.


After animations were done I needed to create some effects that happen behind the character but in front of the pinkish background, how can I do that. I tried adding “sorting layers” component but I must be using it incorrectly, or this is not the way to go, and the particles still stay in front of everything.
Can anyone explain what I should do?
Thanks

Three (3) ways that Unity draws / stacks / sorts / layers / overlays stuff:

https://discussions.unity.com/t/841904/2

In short,

  1. The default 3D Renderers draw stuff according to Z depth - distance from camera.

  2. SpriteRenderers draw according to their Sorting Layer and Sorting Depth properties

  3. UI Canvas Renderers draw in linear transform sequence, like a stack of papers

If you find that you need to mix and match items using these different ways of rendering, and have them appear in ways they are not initially designed for, you need to:

  • identify what you are using
  • search online for the combination of things you are doing and how to to achieve what you want.

There may be more than one solution to try.

Additional reading in the official docs:

https://docs.unity3d.com/Manual/2DSorting.html