Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Child Particle Sytems Rendering behind background

Discussion in '2D' started by Tizizzails, Aug 19, 2019.

  1. Tizizzails

    Tizizzails

    Joined:
    Oct 24, 2018
    Posts:
    6
    I'm sure this question has been asked before, but I couldn't find it. I'm making a 2d sprite based game, have a background sorting layer, ground sorting layer and particle sorting layer. I have a prefab particle system. The particle system is instantiated when an enemy or object is destroyed. If I just drag the particle system from the project window into the scene view and hit play everything looks good - I can see the particles rendering in front of the background. But when it's instantiated by the destruction of an enemy or object It's not visible. I can see it appear in the hierarchy, I can see it if I remove the background. I don't understand why it's being rendered behind the background, when it's in front of it in the sorting layer! Can anyone help? Thanks!
     
  2. MisterSkitz

    MisterSkitz

    Joined:
    Sep 2, 2015
    Posts:
    833
    You need to set the order in layer higher than the background's sorting layer.