Paritcle system sorting layer and order ignored
Asked Answered
V

4

0

There have been quite a few questions about this, but none of the answers seem to work.

In my 2D Game I have multiple sorting layers like ground, vfx, characters and top environment.

I am instantiating particle systems and I want them to be rendered between ground and top, so I set the renderers sorting layer to be vfx. However this setting is ignored and the particle system is displayed behind all other objects despite the render settings.

I have tried to set the materials renderQueue value to a lower and higher value (defaults to 2450), but this does not show any changes either. When I change the position z-axis, it works but then the particles are displayed on top of everything and since it’s a 2D game I want to avoid doing this.

I am really lost on how to fix this behaviour since none else seems to have it.

Vole answered 15/11, 2023 at 9:38 Comment(0)
S
0

Same problem, sorting layers are ignored apparently. Whatever way it works, it’s way too complicated and unintuitive. Unity 2019.1.11

Skelly answered 8/10, 2020 at 14:54 Comment(0)
D
0

What worked for me was changing the shader used for the material in the particle system to a sprite shader.

I don’t know how that impacts anything else… but at least I can adjust the sorting layer and have it work.

Dede answered 2/7, 2023 at 22:44 Comment(0)
P
0

Find “Render” in the particle component and should be the layer system there to select from

Parton answered 6/3, 2022 at 22:47 Comment(0)
P
0

I had the same problem and i realised that i was only changing the parent object’s sorting layer in renderer. Have you checked for the child object’s sorting layer too if you have any?

Pyroxenite answered 14/11, 2023 at 17:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.