Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    45
    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:
    45
    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.
     
unityunity