Hi there,
I am working on optimzing my game and noticed a lot of duplicate textures getting created everytime I clone a particle system. So I tried the following code to remove the texture from hierarchy and while the texture gets disposed fine., the particle system is not taking the sprites I intended. I have also tried creating a new particle system entirely but still getting some weird results. Any help is appreciated.
const torchFireParticle = this._torchFireParticle.clone(`Fx_torchFire_${mesh.name}`, mesh);
torchFireParticle.particleTexture.dispose();
torchFireParticle.particleTexture = this._torchFireParticle.particleTexture;
torchFireParticle.emitter = mesh;