Search Unity

Question Particle system is fine in editor windows, but appears inside the wall in game window

Discussion in 'General Graphics' started by Caliber, Aug 24, 2020.

  1. Caliber

    Caliber

    Joined:
    Feb 11, 2018
    Posts:
    86
    I added TinyExplosion from Unity Particle Pack to my scene.
    Oddly enough, when the explosion is close to a wall, it appears to be inside the wall in the game window, but looks fine in the editor windows.
    In the screenshot below I have the game window on top, and you can only see a tiny bit of the smoke from the explosion. Below the game window I have three editor windows (back, top, side), and the explosion looks fine in each of those.

    If I move the TinyExplosion along the X-axis, so that it is no longer in line with the wall, it looks fine in the Game Window as well.

    What could be causing this?

    explosionbehindwall.png
     
  2. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    @Caliber
    Okay. Do you have the particle explosion on another layer?
    That might possibly be the cause, of the strange problem you're having.
     
  3. Caliber

    Caliber

    Joined:
    Feb 11, 2018
    Posts:
    86
    It was in another layer (intentionally). I changed it to the same layer as the world geometry, but the issue persists.
     
  4. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    Okay.
    Now I'm wondering, if this is some sort of z fighting + camera issue.