Search Unity

Unity UI [Solved] Sprite Particle System not working correctly when built on Android

Discussion in 'UGUI & TextMesh Pro' started by vincent-savysoda, Feb 7, 2018.

  1. vincent-savysoda

    vincent-savysoda

    Joined:
    Dec 19, 2016
    Posts:
    33
    Hi, I'm encountering a weird bug where the Particle System is displaying white boxes instead of the assigned sprites. And this only happens when built on a mobile device, as it works fine when run using the editor. I suspect it may be a shader related issue. Does anyone know what the problem is here?

    Note that this for various reasons the Particle System game object is placed inside a Canvas Renderer (Screen Space Camera render mode with perspective camera).

    (ignore the second particle trail)
     
  2. vincent-savysoda

    vincent-savysoda

    Joined:
    Dec 19, 2016
    Posts:
    33
    Nvm I just found out what the problem was. The sprite for the Particle System was assigned on runtime on the material directly, but there was no material actually assigned on the Particle System on the prefab, hence something was messed up somewhere when Unity tries to assign the sprite to the default material.