I’ve got a script that changes the texture of this ParticleEmitter to change from square to circle every few seconds, when I change the texture it instantly updates every particle.
What would be more handy would be if every new particle made would use this new texture I’ve changed to instead of instantly updating all existing particles. Maybe make it an option?
This would allow me to have square particles then change it to circles allowing for a nice ‘transition’ effect
The problem with this is, it makes it more difficult to view any changes you make with a slower particle. Realistically there needs to be a way to use multiple images instead of resorting to this.
Perhaps use multiple particle emitters?
[quote] The problem with this is, it makes it more difficult to view any changes you make with a slower particle. Realistically there needs to be a way to use multiple images instead of resorting to this.
Perhaps use multiple particle emitters? [/quote]
As previously stated, an option would be able to fix his problems. Just have a boolean where you can change between updating all existing particles, and only updating newly generated ones.
The problem with this is data. A system like particles is extremely heavy on memory, and the system you’re suggesting is to add another texture per particle. That’s a lot of memory gone if you’re getting a bunch of particles in game. What you should do is put together two emitters, one with square, one with circle, then toggle enabled on them on the interval.
It could be done, but it would be inefficient for memory.
[quote] The problem with this is data. A system like particles is extremely heavy on memory, and the system you’re suggesting is to add another texture per particle. That’s a lot of memory gone if you’re getting a bunch of particles in game. What you should do is put together two emitters, one with square, one with circle, then toggle enabled on them on the interval.
It could be done, but it would be inefficient for memory. [/quote]
That’s not what I want at all, what I’m asking for is if I change the texture with a new one I don’t want every single particle to change. I want new particles created to use this texture from now on and let the existing square particles die out until there is, no square particle.