UI Particle System sprites changing at runtime
Issue created by Daniel Loyer as Bitbucket Issue #191 on 2017.12.22 04:58. I'm using a previous version, one that had texture and sprite that could be assigned to the script, since I need to use sprites as particles.
I'm having a issue when changing the sprite at runtime. No matter what sprite is assigned, only the original sprite that was assigned when game starts is used in the particle system.
So in my code, i have something like:
myUIParticleSystem.particleSprite = newSprite;
And the particle system is playing always using the old sprite, even when I can see in the inspector that the particleSprite is now my newSprite.
Is it a bug that was fixed in the later version of the UI Particle System script? If so, is there an option to use sprites? Why not public variables that can be assigned straight from the inspector?