- Home /
Particle system behind tilemap
I'm a little new to Unity engine, so this may be a dumb question. I am trying to make a top down 2d game in unity, and I have tile map I'm using for my background, etc. Anyways, the particle system I created was rendering the particles underneath the tile map. I tried making new layers with the layer I put on the tile map being lower than the one on the particle system, though this still didn't work. I even tried putting the particle system above the tile map in the hierarchy. That still didn't work. Any help would be appreciated!
Answer by Robotinker · Aug 24, 2020 at 06:58 AM
For 2D rendering, render order is set by sorting layer. Make sure that your particle system is using the Sprites-Default material, then set the Sorting Layer ID to something higher than the sorting layer the tilemap is on (or just push it forward with Order in Layer).
Answer by haizathaneefa · Aug 24, 2020 at 04:01 AM
Make sure your background canvas is not set to "screen space - overlay". Change it to "screen space - camera" and attach your camera to it. Make sure the order in layer is set to 0. Assign your particle effect parent a canvas and set the ordering in layer to 1 so that it would show on top of the background.
P/S: Do not assign the parent of the particle system a canvas if you are planning to do interaction with it.
Answer by robertto7 · Aug 26, 2021 at 04:40 PM
ok so i had the same problem but i went to my particle system and added a sorting group component and gave it a higher layer hope i helped you